[MAJOR] Added eww

This commit is contained in:
Afonso Franco 2023-02-14 12:22:01 +00:00
parent 69628ae9b3
commit 0f6dddb4b7
Signed by: afonso
GPG key ID: C459E0BB3DCEE899
3 changed files with 49 additions and 0 deletions

BIN
.config/eww/background Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 MiB

25
.config/eww/eww.scss Normal file
View file

@ -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;
}

24
.config/eww/eww.yuck Normal file
View file

@ -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)))