feat: add update-checker [WIP]

This commit is contained in:
Swarsel 2024-08-10 16:47:46 +02:00
parent bbaee7acd8
commit 2da6d3182d
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
8 changed files with 141 additions and 24 deletions

View file

@ -29,6 +29,19 @@
interval = 60;
};
"custom/nix-updates" = {
exec = "update-checker";
on-click = "update-checker && notify-send 'The system has been updated'";
interval = 3600;
tooltip = true;
return-type = "json";
format = "{} {icon} ?";
format-icons = {
has-updates = "";
updated = "";
};
};
"group/hardware" = {
orientation = "inherit";
drawer = {
@ -39,6 +52,8 @@
"temperature"
"power-profiles-daemon"
"custom/left-arrow-light"
"custom/left-arrow-dark"
"custom/left-arrow-light"
"disk"
"custom/left-arrow-dark"
"memory"
@ -159,6 +174,13 @@
on-click-right = "kitty -o confirm_os_window_close=0 btm";
};
"custom/vpn" = {
format = "VPN ";
exec = "echo '{\"class\": \"connected\"}'";
exec-if = "test -d /proc/sys/net/ipv4/conf/tun0";
return-type = "json";
interval = 5;
};
battery = {
states = {
"warning" = 60;