This commit is contained in:
fatmeat 2025-05-11 18:14:02 +02:00
parent db84c2aff6
commit f549f80b49
3 changed files with 32 additions and 0 deletions

9
eww/eww.yuck Normal file
View File

@ -0,0 +1,9 @@
(defwidget powermenu []
(box :orientation "vertical"
:class "menu"
(button :label "⏻ Shutdown" :onclick "poweroff")
(button :label " Reboot" :onclick "reboot")
(button :label " Lock" :onclick "i3lock -c 000000")
(button :label " Logout" :onclick "i3-msg exit")
)
)

22
eww/styles.yuck Normal file
View File

@ -0,0 +1,22 @@
(style
".menu" {
background: @ayu-bg;
color: @ayu-fg;
padding: 10px;
border-radius: 8px;
border: 2px solid @ayu-accent;
transition: all 0.3s ease-in-out;
}
"button" {
background: transparent;
padding: 8px 12px;
margin: 4px 0;
border: none;
font-family: "Iosevka SS14";
font-size: 14px;
}
"button:hover" {
background: @ayu-dim;
color: @ayu-accent;
}
)

View File

@ -14,6 +14,7 @@ tiling_drag modifier
bindsym $mod+Return exec kitty bindsym $mod+Return exec kitty
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
bindsym $mod+d exec --no-startup-id ~/.config/rofi/retro_launcher.sh bindsym $mod+d exec --no-startup-id ~/.config/rofi/retro_launcher.sh
bindsym $mod+p exec "eww open powermenu"
# change focus # change focus
bindsym $mod+j focus left bindsym $mod+j focus left