feat: adds minute counter, will be trying that out for now

This commit is contained in:
Ahwx 2025-03-26 15:44:48 +01:00
parent f7900d9ba6
commit dab2a8722b
2 changed files with 24 additions and 16 deletions

View file

@ -301,7 +301,7 @@
"group/clock": { "group/clock": {
"orientation": "horizontal", "orientation": "horizontal",
"modules": [ "clock#time", "clock#date" ], "modules": [ "custom/clock#minutes", "clock#time", "clock#date" ],
"drawer": { "drawer": {
"transition-left-to-right": false, "transition-left-to-right": false,
"transition-duration": 500 "transition-duration": 500
@ -334,18 +334,18 @@
"clock#time": { "clock#time": {
"interval": 60, "interval": 60,
"format": " <span color='#aaaaaa'>{:%I:%M %p (%Z)}</span>", "format": " {:%I:%M %p}",
"tooltip": true,
"tooltip-format": "{tz_list}",
"timezones": [
"Europe/Amsterdam",
],
"actions": { "actions": {
"on-scroll-up": "tz_up", "on-scroll-up": "tz_up",
"on-scroll-down": "tz_down" "on-scroll-down": "tz_down"
} }
} },
"custom/clock#minutes": {
"interval": 60,
"format": " <span color='#aaaaaa'>{}</span> ",
"exec": "~/.local/bin/waybar-minutes"
}
} }
] ]
''; '';

View file

@ -144,6 +144,14 @@
# ''; # '';
# }; # };
}; };
"/home/${username}/.local/bin/waybar-minutes" = {
executable = true;
text = ''
#!/bin/sh
echo $(( (24 - $(date +%H)) * 60 - $(date +%M) ))
'';
};
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
wf-recorder wf-recorder