Compare commits

..

No commits in common. "b7fe5a0014e26c8654ef0074aea1cbb188111d01" and "f903d1b45e9974a2f48d8562621865d92b4020a3" have entirely different histories.

6 changed files with 54 additions and 103 deletions

View file

@ -23,5 +23,5 @@
sensitivity = 256; sensitivity = 256;
}; };
services.libinput.touchpad.tapping = true; services.libinput.touchpad.tapping = false;
} }

View file

@ -15,22 +15,18 @@
(defwidget bottomBar [] (defwidget bottomBar []
(overlay (overlay
:class "bottomBar" :class "bottomBar"
(transform (centerbox
:translate-y "1.5px" (box
(centerbox :halign "start"
(box (workspaceWidget)
:halign "start" )
(workspaceWidget) (box
) :halign "center"
(box (traveldings)
:halign "center" )
(traveldings) (box
) :halign "end"
(box (label :text "${iceData.speed}km/h")
:halign "end"
; (label :text "${iceData.speed}km/h")
(iceTacho)
)
) )
) )
(box (box
@ -47,19 +43,8 @@
) )
) )
(defwidget iceTacho [] (defpoll iceData
(box :interval "2s"
:class "iceTacho" :initial ""
:tooltip "Tz${iceTachoData.tzn} (BR ${iceTachoData.br})" `(iw dev wlp4s0 link | grep "WIFIonICE" > /dev/null) && curl https://iceportal.de/api1/rs/status`
(circular-progress
:value { iceTachoData.frac * 60 + 20 }
:thickness 3
)
(label :text "${iceTachoData.speed} km/h")
)
)
(deflisten iceTachoData
:initial "null"
{ "~/.config/eww/scripts/iceTacho.nu" }
) )

View file

@ -1,38 +1,15 @@
#!/usr/bin/env nu #!/usr/bin/env nu
const TABLE = { const TABLE = [
401: 280 [ br vmax ];
402: 280 [ 401 280 ]
403: 330 [ 402 280 ]
406: 330 [ 403 330 ]
407: 320 [ 406 330 ]
408: 320 [ 407 320 ]
411: 230 [ 408 320 ]
415: 230 [ 411 230 ]
412: 265 [ 415 230 ]
605: 200 [ 412 265 ]
}; [ 605 200 ]
];
def main [ ] {
loop {
if ((iw dev wlp4s0 link | lines | filter {|it| $it =~ "WIFIonICE" } | length) == 1) {
let iceData = http get https://iceportal.de/api1/rs/status;
let tzn = $iceData.tzn;
let br = $iceData.series;
let speed = $iceData.speed;
let speedfrac = $speed / ($TABLE | get $br);
print ({
tzn: $tzn,
br: $br,
speed: $speed,
frac: $speedfrac
} | to json -r);
sleep 2sec;
} else {
print "null";
sleep 5sec;
}
}
}

View file

@ -16,34 +16,31 @@
(defwidget topBar [] (defwidget topBar []
(overlay (overlay
:class "topBar" :class "topBar"
(transform (centerbox
:translate-y "-1.5px" (box
(centerbox :halign "start"
(box :spacing 12
:halign "start" :space-evenly false
:spacing 12 (label :text " ")
:space-evenly false (cpu)
(label :text " ") (sep)
(cpu) (mem)
(sep) (sep)
(mem) (label :markup bat0)
(sep) (sep)
(label :markup bat0) (label :markup bat1)
(sep) )
(label :markup bat1) (box
) :halign "center"
(box (systray
:halign "center" :icon-size 18
(systray :spacing 3
:icon-size 18
:spacing 3
)
)
(box
:halign "end"
(time)
) )
) )
(box
:halign "end"
(time)
)
) )
(box (box
:class "transFlag" :class "transFlag"

View file

@ -79,7 +79,6 @@
{class = "^Signal$";} {class = "^Signal$";}
{class = "^Element$";} {class = "^Element$";}
{class = "^Evolution$";} {class = "^Evolution$";}
{class = "^teams-for-linux$";}
]; ];
"2" = [ "2" = [
{app_id = "^firefox$";} {app_id = "^firefox$";}

View file

@ -1,7 +1,6 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: let }: let
cfg = config.jade.desktop.social; cfg = config.jade.desktop.social;
@ -17,17 +16,11 @@ in
... ...
}: { }: {
home.packages = with pkgs; [ home.packages = with pkgs; [
pkgs-stable.evolutionWithPlugins
signal-desktop signal-desktop
mumble mumble
element-desktop element-desktop
pkgs.evolution-data-server-gtk4
]; ];
}; };
programs.evolution = {
enable = true;
plugins = [pkgs.evolution-ews];
};
services.gnome.evolution-data-server.enable = true;
services.gnome.evolution-data-server.plugins = [];
}; };
} }