diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 19:11:03 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 19:11:03 +0530 |
| commit | 66e401fb6324c073a0770e0a4afe6d5cca830046 (patch) | |
| tree | 6ccd766ac7d90af1caa22af802522c2866524633 /modules/desktop/eww/bar.yuck | |
| parent | c481a8e1ac6a4cb357f5e8e907b881b2cfe31f6e (diff) | |
| download | home-manager-config-66e401fb6324c073a0770e0a4afe6d5cca830046.tar.gz home-manager-config-66e401fb6324c073a0770e0a4afe6d5cca830046.zip | |
desktop: 12 hour time format for eww bar
Diffstat (limited to 'modules/desktop/eww/bar.yuck')
| -rw-r--r-- | modules/desktop/eww/bar.yuck | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/desktop/eww/bar.yuck b/modules/desktop/eww/bar.yuck index d22f9e0..f7fdf49 100644 --- a/modules/desktop/eww/bar.yuck +++ b/modules/desktop/eww/bar.yuck @@ -1,4 +1,5 @@ -(defpoll time :interval "10s" "date '+%H:%M'") +(defpoll time :interval "10s" "date '+%I:%M'") +(defpoll ampm :interval "10s" "date '+%p'") (defpoll date :interval "60s" "date '+%d/%m'") (defpoll full_date :interval "60s" "date '+%A, %d %B %Y'") (deflisten workspaces :initial "[]" "@@workspaces-script@@") @@ -72,7 +73,9 @@ :tooltip "${system_stats.ram.tooltip}" (image :class "system-icon" :path "@@icon-ram@@" :image-width 24 :image-height 24) (label :class "system-label" :text "${system_stats.ram.percent}%")) - (eventbox :onclick "pamixer --toggle-mute" :cursor "pointer" :halign "fill" + (eventbox :onclick "pamixer --toggle-mute" + :onscroll "bash -c '[ \"{}\" = \"up\" ] && pamixer --increase 5 --unmute || pamixer --decrease 5'" + :cursor "pointer" :halign "fill" (box :orientation "v" :space-evenly false :spacing 4 :class "system-item" :tooltip "${system_stats.sound.tooltip}" (image :class "system-icon" :path "@@icon-audio@@" :image-width 24 :image-height 24) @@ -81,4 +84,5 @@ :tooltip "${full_date} ${time} (${date})" (image :class "system-icon" :path "@@icon-calendar@@" :image-width 24 :image-height 24) (label :class "system-label small" :text time) + (label :class "system-label small" :text ampm) (label :class "system-label small" :text date)))) |
