eww
This commit is contained in:
parent
db84c2aff6
commit
f549f80b49
9
eww/eww.yuck
Normal file
9
eww/eww.yuck
Normal 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
22
eww/styles.yuck
Normal 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;
|
||||||
|
}
|
||||||
|
)
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user