aboutsummaryrefslogtreecommitdiff
path: root/.config/eww
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-12-18 23:29:27 +0200
committersrdusr <trevorgray@srdusr.com>2023-12-18 23:29:27 +0200
commit0754612876da2ec4b250824633a7b3eddc049c12 (patch)
treeb56988a18061d7d7a6a085420ee22dcedce4c7b2 /.config/eww
parentd64ebfd6d8380914e84e359d5644b701c3883d17 (diff)
downloaddotfiles-0754612876da2ec4b250824633a7b3eddc049c12.tar.gz
dotfiles-0754612876da2ec4b250824633a7b3eddc049c12.zip
Changed names and placement of files
Diffstat (limited to '.config/eww')
-rw-r--r--.config/eww/panel/main.yuck142
1 files changed, 0 insertions, 142 deletions
diff --git a/.config/eww/panel/main.yuck b/.config/eww/panel/main.yuck
deleted file mode 100644
index ac8b559..0000000
--- a/.config/eww/panel/main.yuck
+++ /dev/null
@@ -1,142 +0,0 @@
-(defwindow panel
- :monitor 0
- :geometry (geometry :x 28 :y 0 :anchor "center left")
- (panel))
-
-(defwidget panel []
- (box
- :class "panel"
- :orientation "v"
- :space-evenly false
- (panel-audio)
- (panel-video)
- )
-)
-
-; Panel Items
-
-(defwidget panel-buttons []
- (box
- :class "panel-buttons"
- :space-evenly false
- (children)
- )
-)
-
-(defwidget panel-checkbox [?change text ?value]
- (button
- :onclick change
- (box
- :class "panel-checkbox"
- :space-evenly false
- (icon :name {value ? "check-square" : "square"})
- text
- )
- )
-)
-
-(defwidget panel-slider [icon ?setter ?value]
- (eventbox
- ;:onscroll setter
- (box
- :space-evenly false
- (icon :name icon)
- (scale
- :class "panel-slider"
- :min 0
- :max 11
- :onchange setter
- :value value
- )
- )
- )
-)
-
-; Panel Sections
-
-(defwidget panel-section [color icon title]
- (box
- :class "panel-section"
- :orientation "v"
- :space-evenly false
- (box
- :class "panel-header"
- :spacing 10
- :space-evenly false
- (icon :name icon :color color)
- title
- )
- (box
- :orientation "v"
- :space-evenly false
- :spacing 14
- (children)
- )
- )
-)
-
-(defwidget panel-audio []
- (panel-section
- :color "green"
- :icon "sliders"
- :title "Audio"
-
- ; audio device
- (panel-buttons
- (button :onclick "set-output -a pci-0000_00_1b" "Bar")
- (button :onclick "set-output -a stereo-game" "Headset")
- (button :onclick "set-output -a HD3" "Speakers")
- )
-
- ; volume slider
- (panel-slider
- :icon "volume-2"
- :setter "set-volume {}"
- :value volume
- )
- )
-)
-
-(defwidget panel-video []
- (panel-section
- :color "red"
- :icon "monitor"
- :title "Video"
-
- ; wallpaper setter
- (eventbox
- :ondropped "set-wallpaper {}"
- (button
- :onclick "quick-app -c Thunar -f \
- && thunar /home/edwin/.local/share/backgrounds"
- (image
- :class "panel-wallpaper"
- :path "/home/edwin/.config/wallpaper"
- :image-height 108
- :image-width 256
- )
- )
- )
-
- ; brightness slider
- (panel-slider
- :icon "sun"
- :setter "set-brightness {}"
- :value brightness
- )
-
- ; external monitor
- (panel-checkbox
- :change "set-output -e ${!externalMonitor}"
- :text "External Monitor"
- :value externalMonitor
- )
-
- ; ultrawide resolution
- (panel-checkbox
- :change "set-output -u ${!ultrawide}"
- :text "Ultrawide Resolution"
- :value ultrawide
- )
- )
-)