mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: add update-checker [WIP]
This commit is contained in:
parent
bbaee7acd8
commit
2da6d3182d
8 changed files with 141 additions and 24 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue