summaryrefslogtreecommitdiffstats
path: root/eww/src/header
diff options
context:
space:
mode:
Diffstat (limited to 'eww/src/header')
-rw-r--r--eww/src/header/fetch.yuck36
-rw-r--r--eww/src/header/init.yuck12
2 files changed, 48 insertions, 0 deletions
diff --git a/eww/src/header/fetch.yuck b/eww/src/header/fetch.yuck
new file mode 100644
index 0000000..34aa7e1
--- /dev/null
+++ b/eww/src/header/fetch.yuck
@@ -0,0 +1,36 @@
+(defwidget txt [label]
+ (box :halign 'start' label ))
+
+(defwidget title[]
+ (box :class 'fetchTitles' :orientation 'v'
+ (txt :label 'os')
+ (txt :label 'wm')
+ (txt :label 'sh')
+))
+
+(defwidget details[]
+ (box :orientation 'v'
+ (txt :label os)
+ (txt :label wm)
+ (txt :label shell)
+))
+
+(defwidget hdd[]
+ (box :orientation 'v' :class 'hdd'
+ (progressBar
+ :value disk
+ :text 'HDD'
+ :class 'DISK'
+ )
+ )
+ )
+
+(defwidget fetch[]
+ (box :class 'fetch'
+ (box :class 'logo' '' )
+ (box :orientation 'h' :class 'fetchContent' :space-evenly false
+ (title)
+ (details)
+ )
+ (hdd)
+))
diff --git a/eww/src/header/init.yuck b/eww/src/header/init.yuck
new file mode 100644
index 0000000..4568dc0
--- /dev/null
+++ b/eww/src/header/init.yuck
@@ -0,0 +1,12 @@
+(defwidget headerBtns[]
+ (box :space-evenly false :valign 'end' :halign 'end' :class 'headerBtns'
+ (button :class 'min' :onclick 'eww close eww' '')
+ (button :class 'close' :onclick 'eww kill' '')
+ )
+ )
+
+(defwidget header[]
+ (box :orientation 'v' :space-evenly false
+ (headerBtns)
+ (fetch)
+))