From af120ab348f2e1a5a39dec035ed9dcf84189a64e Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Mon, 3 Oct 2022 21:42:20 +0530 Subject: dotfiles --- eww/src/footer/btns.yuck | 33 +++++++++++++++++++++++++++++++++ eww/src/footer/init.yuck | 15 +++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 eww/src/footer/btns.yuck create mode 100644 eww/src/footer/init.yuck (limited to 'eww/src/footer') 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) + )) -- cgit v1.2.3-59-g8ed1b