diff --git a/config/eww/eww.yuck b/config/eww/eww.yuck index b603679..d204b71 100644 --- a/config/eww/eww.yuck +++ b/config/eww/eww.yuck @@ -57,16 +57,22 @@ :char "󱐋")) (defwidget volume [] - (circle :prog {vol * 7/10} - :sty "font-size: 12; margin-right: 2px;" - :val {vol + 1 - 1} - :char "")) + (eventbox + :onclick "hyprctl dispatch exec 'pavucontrol -t 3'" + :onscroll "if [ {} == 'up' ]; then /etc/nixos/config/dunst/scripts/volumeNotify.sh 1%+; else /etc/nixos/config/dunst/scripts/volumeNotify.sh 1%-; fi" + (circle :prog {vol * 7/10} + :sty "font-size: 12; margin-right: 2px;" + :val {vol + 1 - 1} + :char ""))) (defwidget mic [] - (circle :prog {micvol * 70} - :sty "margin-left: 1px;" - :val {micvol *100} - :char "󰍬")) + (eventbox + :onclick "hyprctl dispatch exec 'pavucontrol -t 4'" + :onscroll "if [ {} == 'up' ]; then wpctl set-volume -l 1 @DEFAULT_SOURCE@ 1%+; else wpctl set-volume @DEFAULT_SOURCE@ 1%-; fi" + (circle :prog {micvol * 70} + :sty "margin-left: 1px;" + :val {micvol *100} + :char "󰍬"))) (defwidget brightness [] (eventbox @@ -101,9 +107,11 @@ (power)))) (defwidget cal [] - (eventbox - :onhoverlost "eww close cal" - (calendar))) + (box + :class "cal" + (eventbox + :onhoverlost "eww close cal" + (calendar)))) ;; Windows