mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-12-05 02:38:44 +01:00
Compare commits
5 commits
f903d1b45e
...
b7fe5a0014
Author | SHA1 | Date | |
---|---|---|---|
b7fe5a0014 | |||
f9b59e8ed2 | |||
cdb1b93296 | |||
effe29cd74 | |||
f0b640eeed |
|
@ -23,5 +23,5 @@
|
|||
sensitivity = 256;
|
||||
};
|
||||
|
||||
services.libinput.touchpad.tapping = false;
|
||||
services.libinput.touchpad.tapping = true;
|
||||
}
|
||||
|
|
|
@ -15,18 +15,22 @@
|
|||
(defwidget bottomBar []
|
||||
(overlay
|
||||
:class "bottomBar"
|
||||
(centerbox
|
||||
(box
|
||||
:halign "start"
|
||||
(workspaceWidget)
|
||||
)
|
||||
(box
|
||||
:halign "center"
|
||||
(traveldings)
|
||||
)
|
||||
(box
|
||||
:halign "end"
|
||||
(label :text "${iceData.speed}km/h")
|
||||
(transform
|
||||
:translate-y "1.5px"
|
||||
(centerbox
|
||||
(box
|
||||
:halign "start"
|
||||
(workspaceWidget)
|
||||
)
|
||||
(box
|
||||
:halign "center"
|
||||
(traveldings)
|
||||
)
|
||||
(box
|
||||
:halign "end"
|
||||
; (label :text "${iceData.speed}km/h")
|
||||
(iceTacho)
|
||||
)
|
||||
)
|
||||
)
|
||||
(box
|
||||
|
@ -43,8 +47,19 @@
|
|||
)
|
||||
)
|
||||
|
||||
(defpoll iceData
|
||||
:interval "2s"
|
||||
:initial ""
|
||||
`(iw dev wlp4s0 link | grep "WIFIonICE" > /dev/null) && curl https://iceportal.de/api1/rs/status`
|
||||
(defwidget iceTacho []
|
||||
(box
|
||||
:class "iceTacho"
|
||||
: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" }
|
||||
)
|
||||
|
|
49
modules/desktop-environment/home/panels/eww/configDir/scripts/iceTacho.nu
Normal file → Executable file
49
modules/desktop-environment/home/panels/eww/configDir/scripts/iceTacho.nu
Normal file → Executable file
|
@ -1,15 +1,38 @@
|
|||
#!/usr/bin/env nu
|
||||
|
||||
const TABLE = [
|
||||
[ br vmax ];
|
||||
[ 401 280 ]
|
||||
[ 402 280 ]
|
||||
[ 403 330 ]
|
||||
[ 406 330 ]
|
||||
[ 407 320 ]
|
||||
[ 408 320 ]
|
||||
[ 411 230 ]
|
||||
[ 415 230 ]
|
||||
[ 412 265 ]
|
||||
[ 605 200 ]
|
||||
];
|
||||
const TABLE = {
|
||||
401: 280
|
||||
402: 280
|
||||
403: 330
|
||||
406: 330
|
||||
407: 320
|
||||
408: 320
|
||||
411: 230
|
||||
415: 230
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,30 +16,33 @@
|
|||
(defwidget topBar []
|
||||
(overlay
|
||||
:class "topBar"
|
||||
(centerbox
|
||||
(box
|
||||
:halign "start"
|
||||
:spacing 12
|
||||
:space-evenly false
|
||||
(label :text " ")
|
||||
(cpu)
|
||||
(sep)
|
||||
(mem)
|
||||
(sep)
|
||||
(label :markup bat0)
|
||||
(sep)
|
||||
(label :markup bat1)
|
||||
)
|
||||
(box
|
||||
:halign "center"
|
||||
(systray
|
||||
:icon-size 18
|
||||
:spacing 3
|
||||
(transform
|
||||
:translate-y "-1.5px"
|
||||
(centerbox
|
||||
(box
|
||||
:halign "start"
|
||||
:spacing 12
|
||||
:space-evenly false
|
||||
(label :text " ")
|
||||
(cpu)
|
||||
(sep)
|
||||
(mem)
|
||||
(sep)
|
||||
(label :markup bat0)
|
||||
(sep)
|
||||
(label :markup bat1)
|
||||
)
|
||||
(box
|
||||
:halign "center"
|
||||
(systray
|
||||
:icon-size 18
|
||||
:spacing 3
|
||||
)
|
||||
)
|
||||
(box
|
||||
:halign "end"
|
||||
(time)
|
||||
)
|
||||
)
|
||||
(box
|
||||
:halign "end"
|
||||
(time)
|
||||
)
|
||||
)
|
||||
(box
|
||||
|
|
|
@ -79,6 +79,7 @@
|
|||
{class = "^Signal$";}
|
||||
{class = "^Element$";}
|
||||
{class = "^Evolution$";}
|
||||
{class = "^teams-for-linux$";}
|
||||
];
|
||||
"2" = [
|
||||
{app_id = "^firefox$";}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.jade.desktop.social;
|
||||
|
@ -16,11 +17,17 @@ in
|
|||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [
|
||||
pkgs-stable.evolutionWithPlugins
|
||||
signal-desktop
|
||||
mumble
|
||||
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 = [];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue