summaryrefslogtreecommitdiffstats
path: root/eww/src/footer
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2022-10-03 21:42:20 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2022-10-03 21:42:20 +0530
commitaf120ab348f2e1a5a39dec035ed9dcf84189a64e (patch)
tree2a3aadd7ce1b7b771dfe3fe7c983569726c8d7ed /eww/src/footer
downloaddotfiles-af120ab348f2e1a5a39dec035ed9dcf84189a64e.tar.gz
dotfiles-af120ab348f2e1a5a39dec035ed9dcf84189a64e.tar.bz2
dotfiles-af120ab348f2e1a5a39dec035ed9dcf84189a64e.zip
dotfiles
Diffstat (limited to 'eww/src/footer')
-rw-r--r--eww/src/footer/btns.yuck33
-rw-r--r--eww/src/footer/init.yuck15
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)
+ ))