Compare commits

...

5 commits

Author SHA1 Message Date
Schrottkatze b7fe5a0014
enable touchpad tapping 2024-10-03 19:31:56 +02:00
Schrottkatze f9b59e8ed2
setup teams window assignment 2024-10-03 19:31:47 +02:00
Schrottkatze cdb1b93296
make evolution setup cooler(tm) 2024-10-03 19:31:26 +02:00
Schrottkatze effe29cd74
continue work on ICE tacho 2024-10-03 19:31:13 +02:00
Schrottkatze f0b640eeed
fix bar layout 2024-10-03 19:30:56 +02:00
6 changed files with 103 additions and 54 deletions

View file

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

View file

@ -15,18 +15,22 @@
(defwidget bottomBar [] (defwidget bottomBar []
(overlay (overlay
:class "bottomBar" :class "bottomBar"
(centerbox (transform
(box :translate-y "1.5px"
:halign "start" (centerbox
(workspaceWidget) (box
) :halign "start"
(box (workspaceWidget)
:halign "center" )
(traveldings) (box
) :halign "center"
(box (traveldings)
:halign "end" )
(label :text "${iceData.speed}km/h") (box
:halign "end"
; (label :text "${iceData.speed}km/h")
(iceTacho)
)
) )
) )
(box (box
@ -43,8 +47,19 @@
) )
) )
(defpoll iceData (defwidget iceTacho []
:interval "2s" (box
:initial "" :class "iceTacho"
`(iw dev wlp4s0 link | grep "WIFIonICE" > /dev/null) && curl https://iceportal.de/api1/rs/status` :tooltip "Tz${iceTachoData.tzn} (BR ${iceTachoData.br})"
(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,15 +1,38 @@
#!/usr/bin/env nu #!/usr/bin/env nu
const TABLE = [ const TABLE = {
[ br vmax ]; 401: 280
[ 401 280 ] 402: 280
[ 402 280 ] 403: 330
[ 403 330 ] 406: 330
[ 406 330 ] 407: 320
[ 407 320 ] 408: 320
[ 408 320 ] 411: 230
[ 411 230 ] 415: 230
[ 415 230 ] 412: 265
[ 412 265 ] 605: 200
[ 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,30 +16,33 @@
(defwidget topBar [] (defwidget topBar []
(overlay (overlay
:class "topBar" :class "topBar"
(centerbox (transform
(box :translate-y "-1.5px"
:halign "start" (centerbox
:spacing 12 (box
:space-evenly false :halign "start"
(label :text " ") :spacing 12
(cpu) :space-evenly false
(sep) (label :text " ")
(mem) (cpu)
(sep) (sep)
(label :markup bat0) (mem)
(sep) (sep)
(label :markup bat1) (label :markup bat0)
) (sep)
(box (label :markup bat1)
:halign "center" )
(systray (box
:icon-size 18 :halign "center"
:spacing 3 (systray
:icon-size 18
:spacing 3
)
)
(box
:halign "end"
(time)
) )
)
(box
:halign "end"
(time)
) )
) )
(box (box

View file

@ -79,6 +79,7 @@
{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,6 +1,7 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: let }: let
cfg = config.jade.desktop.social; cfg = config.jade.desktop.social;
@ -16,11 +17,17 @@ 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 = [];
}; };
} }