[MAJOR] Added eww
This commit is contained in:
parent
69628ae9b3
commit
0f6dddb4b7
3 changed files with 49 additions and 0 deletions
BIN
.config/eww/background
Normal file
BIN
.config/eww/background
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 MiB |
25
.config/eww/eww.scss
Normal file
25
.config/eww/eww.scss
Normal 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
24
.config/eww/eww.yuck
Normal 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)))
|
Loading…
Reference in a new issue