summaryrefslogtreecommitdiffstats
path: root/eww/src
diff options
context:
space:
mode:
Diffstat (limited to 'eww/src')
-rw-r--r--eww/src/dashboard.yuck7
-rw-r--r--eww/src/focal/audioSliders.yuck47
-rw-r--r--eww/src/focal/init.yuck5
-rw-r--r--eww/src/focal/widgets.yuck22
-rw-r--r--eww/src/footer/btns.yuck33
-rw-r--r--eww/src/footer/init.yuck15
-rw-r--r--eww/src/header/fetch.yuck36
-rw-r--r--eww/src/header/init.yuck12
-rw-r--r--eww/src/widgets.yuck24
9 files changed, 0 insertions, 201 deletions
diff --git a/eww/src/dashboard.yuck b/eww/src/dashboard.yuck
deleted file mode 100644
index 39d7a4d..0000000
--- a/eww/src/dashboard.yuck
+++ /dev/null
@@ -1,7 +0,0 @@
-(defwidget dashboard []
- (box :orientation "v"
- (header)
- (audioSliders)
- (focal)
- (footer)
- ))
diff --git a/eww/src/focal/audioSliders.yuck b/eww/src/focal/audioSliders.yuck
deleted file mode 100644
index 8f4fb50..0000000
--- a/eww/src/focal/audioSliders.yuck
+++ /dev/null
@@ -1,47 +0,0 @@
-(defwidget audioSliders []
- (box :space-evenly false :class 'audioSliders'
-
- ; Master
- (box :orientation 'v' :class 'addPadding'
- (label :text '' :class 'audioIcon')
- (metric
- :class 'masterSlider'
- :value master_vol
- :onchange "amixer set Master {}%"
- :orientation 'v'
- :flipped true
- )
- )
-
- ; Headphone
- (box :orientation 'v' :class 'addPadding'
- (label :text '' :class 'audioIcon')
- (metric
- :class 'headphoneSlider'
- :value head_vol
- :onchange "amixer set Headphone {}%"
- :orientation 'v'
- :flipped true
- ))
-
- ; Mic
- (box :orientation 'v' :class 'addPadding'
- (label :text '' :class 'audioIcon')
- (metric
- :class 'micSlider'
- :value mic_vol
- :onchange "amixer set Mic {}%"
- :orientation 'v'
- :flipped true
- ))
-
- (box :orientation 'v' :class 'pkgsBox'
- (progressBar
- :value battery
- :text ''
- :class 'battery'
- )
- ; package count
- (label :text ' ${pkgs} pkgs' :class 'pkgs')
- )
- ))
diff --git a/eww/src/focal/init.yuck b/eww/src/focal/init.yuck
deleted file mode 100644
index e3e5da7..0000000
--- a/eww/src/focal/init.yuck
+++ /dev/null
@@ -1,5 +0,0 @@
-(defwidget focal []
- (box :orientation "v"
- (time)
- (radialBars)
- ))
diff --git a/eww/src/focal/widgets.yuck b/eww/src/focal/widgets.yuck
deleted file mode 100644
index 7f609c0..0000000
--- a/eww/src/focal/widgets.yuck
+++ /dev/null
@@ -1,22 +0,0 @@
-(defwidget time[]
- (box :class 'time'
- '󱑆 ${time} | ${date}')
- )
-
-(defwidget radialBars[]
- (box :class "radialBars"
- (progressBar
- :value cpu
- :text ''
- :class 'CPU'
- :boxClass 'CPUBOX'
- )
- (progressBar
- :value ram
- :text '﬙'
- :class 'RAM'
- :boxClass 'RAMBOX'
- )
- (button :class 'mute' :onclick 'amixer set Master 0' '' )
- )
-)
diff --git a/eww/src/footer/btns.yuck b/eww/src/footer/btns.yuck
deleted file mode 100644
index 0cb3ade..0000000
--- a/eww/src/footer/btns.yuck
+++ /dev/null
@@ -1,33 +0,0 @@
-(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
deleted file mode 100644
index d80ea37..0000000
--- a/eww/src/footer/init.yuck
+++ /dev/null
@@ -1,15 +0,0 @@
-(defwidget backlightSlider []
- (metric
- :class 'brightness'
- :value brightness
- :onchange "xbacklight -set {}%"
- :orientation 'h'
- :flipped false
- )
-)
-
-(defwidget footer []
- (box :orientation "v"
- (backlightSlider)
- (btns)
- ))
diff --git a/eww/src/header/fetch.yuck b/eww/src/header/fetch.yuck
deleted file mode 100644
index 34aa7e1..0000000
--- a/eww/src/header/fetch.yuck
+++ /dev/null
@@ -1,36 +0,0 @@
-(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
deleted file mode 100644
index 4568dc0..0000000
--- a/eww/src/header/init.yuck
+++ /dev/null
@@ -1,12 +0,0 @@
-(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)
-))
diff --git a/eww/src/widgets.yuck b/eww/src/widgets.yuck
deleted file mode 100644
index f299ed9..0000000
--- a/eww/src/widgets.yuck
+++ /dev/null
@@ -1,24 +0,0 @@
-; radial progress bar
-(defwidget progressBar [value text class ?boxClass]
- (box :class boxClass
- (circular-progress :class class
- :value value
- :thickness 5
- text
- )
- )
-)
-
-; slider
-(defwidget metric [class value ?onchange orientation flipped ]
- (box :class class :orientation orientation :space-evenly true
- (scale
- :min 0
- :max 101
- :active {onchange != ""}
- :value value
- :onchange onchange
- :orientation orientation
- :flipped flipped
- )
-))