diff options
Diffstat (limited to 'eww/src/footer')
-rw-r--r-- | eww/src/footer/btns.yuck | 33 | ||||
-rw-r--r-- | eww/src/footer/init.yuck | 15 |
2 files changed, 48 insertions, 0 deletions
diff --git a/eww/src/footer/btns.yuck b/eww/src/footer/btns.yuck new file mode 100644 index 0000000..0cb3ade --- /dev/null +++ b/eww/src/footer/btns.yuck @@ -0,0 +1,33 @@ +(defwidget btn [name command class] + (box :orientation "v" + :halign "center" + :class "btnMargin" + (button :onclick command + :class "btn ${class}" + name)) +) + +(defwidget btns [] + (box :orientation "h" + :class 'footerBtns' + + (btn :name "" + :command "rofi -show drun" + :class "restart" + ) + +(btn :name "" + :command "slock" + :class "lock" + ) + + (btn :name wifi + :command "iwgtk" + :class "wifi" + ) + + (btn :name "" + :command "doas zzz" + :class "sleep" + ) +)) diff --git a/eww/src/footer/init.yuck b/eww/src/footer/init.yuck new file mode 100644 index 0000000..d80ea37 --- /dev/null +++ b/eww/src/footer/init.yuck @@ -0,0 +1,15 @@ +(defwidget backlightSlider [] + (metric + :class 'brightness' + :value brightness + :onchange "xbacklight -set {}%" + :orientation 'h' + :flipped false + ) +) + +(defwidget footer [] + (box :orientation "v" + (backlightSlider) + (btns) + )) |