feat(eww): add power button click

This commit is contained in:
stitchy 2025-02-15 07:41:27 +00:00
parent c34fea90fe
commit 9f19b0e60e
Signed by: stitchy
SSH key fingerprint: SHA256:yz2SoxdnY67tfY5Jzb0f2v8f5W3o/IF359kbcquWip8
2 changed files with 4 additions and 1 deletions

View file

@ -83,7 +83,9 @@
:char "󰃠"))) :char "󰃠")))
(defwidget power [] (defwidget power []
(box :class "power" :valign "end" "⏻")) (eventbox
:onclick "hyprctl dispatch exec 'wlogout'"
(box :class "power" :valign "end" "⏻")))
(defwidget tray [] (defwidget tray []
(systray :orientation "v" :icon-size 20)) (systray :orientation "v" :icon-size 20))

View file

@ -43,6 +43,7 @@ let
"slurp" "slurp"
"swaylock-effects" "swaylock-effects"
"tofi" "tofi"
"wlogout"
"wofi" "wofi"
"zathura" "zathura"
] pkgs ++ [ pkgs.hunspellDicts.en_US ]; ] pkgs ++ [ pkgs.hunspellDicts.en_US ];