diff --git a/.config/eww/background b/.config/eww/background new file mode 100644 index 0000000..9c5c4cf Binary files /dev/null and b/.config/eww/background differ diff --git a/.config/eww/eww.scss b/.config/eww/eww.scss new file mode 100644 index 0000000..25d9072 --- /dev/null +++ b/.config/eww/eww.scss @@ -0,0 +1,25 @@ +* { + all: unset; +} + +window { + border-radius: 5%; +} + +.btns-box { + padding: 10px; + background-color: #282a36; + font-family: FiraCode Nerd Font Mono; + font-size: 100px; +} + +.button{ + border-radius: 5%; + outline-style: solid; + outline-color: #44475a; + outline-width: 2px; +} + +.button:hover{ + background-color: #44475a; +} diff --git a/.config/eww/eww.yuck b/.config/eww/eww.yuck new file mode 100644 index 0000000..35a55a6 --- /dev/null +++ b/.config/eww/eww.yuck @@ -0,0 +1,24 @@ +(defwindow powermenu + :stacking "fg" + :windowtype "dialog" + :wm-ignore true + :monitor 0 + :geometry (geometry :anchor "center" :width "50%" :height "25%") + (powermenu_layout)) + +(defwidget powermenu_layout [] + (_buttons :sleep "systemctl suspend" + :sleep_icon "⏾" + :poweroff "poweroff" + :poweroff_icon "⏻" + :reboot "reboot" + :reboot_icon "" + :logout "loginctl kill-session self" + :logout_icon "󰗽")) + +(defwidget _buttons [sleep sleep_icon poweroff poweroff_icon reboot reboot_icon logout logout_icon] + (box :class "btns-box" + (button :class "button" :onclick sleep sleep_icon) + (button :class "button" :onclick poweroff poweroff_icon) + (button :class "button" :onclick reboot reboot_icon) + (button :class "button" :onclick logout logout_icon)))