mirror of https://github.com/Flinner/dots.git
feat: add day countdown timer
This commit is contained in:
parent
7125d4f6bf
commit
241c936383
|
|
@ -5,7 +5,7 @@
|
|||
// Choose the order of the modules
|
||||
"reload_style_on_change": true,
|
||||
"modules-left": ["hyprland/workspaces"],
|
||||
"modules-center": ["custom/org-clock", "pulseaudio","custom/prayers", "network", "cpu", "memory", "clock", "upower#headset", "custom/music"],
|
||||
"modules-center": ["custom/org-clock", "custom/daysleft", "pulseaudio","custom/prayers", "network", "cpu", "memory", "clock", "upower#headset", "custom/music"],
|
||||
// "modules-right": ["pulseaudio", "cpu", "backlight", "battery", "clock", "tray", "custom/lock", "custom/power"],
|
||||
"modules-right": ["tray", "custom/lock", "custom/power"],
|
||||
"hyprland/workspaces": {
|
||||
|
|
@ -57,6 +57,12 @@
|
|||
"on-click": "",
|
||||
"max-length": 50
|
||||
},
|
||||
"custom/daysleft": {
|
||||
"format": "{} days left!",
|
||||
"return-type": "json",
|
||||
"interval": 3600, // Update once an hour
|
||||
"exec": "echo '{\"text\": \"'$((($(date -d '2026-04-16' +%s) - $(date +%s)) / 86400))'\"}'"
|
||||
},
|
||||
"custom/music": {
|
||||
"format": " {}",
|
||||
"escape": true,
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@
|
|||
#custom-music,
|
||||
#upower.headset,
|
||||
#custom-org-clock,
|
||||
#custom-daysleft,
|
||||
#cpu,
|
||||
#memory,
|
||||
#network,
|
||||
|
|
@ -102,7 +103,14 @@
|
|||
#custom-org-clock {
|
||||
color: @yellow;
|
||||
border-radius: 1rem;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
#custom-daysleft {
|
||||
color: lavender;
|
||||
border-radius: 1rem;
|
||||
}
|
||||
|
||||
#custom-music {
|
||||
color: @mauve;
|
||||
border-radius: 1rem;
|
||||
|
|
|
|||
Loading…
Reference in New Issue