diff options
Diffstat (limited to 'modules/desktop')
| -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)))) |
