alot of messing with what I like for a desktop
This commit is contained in:
parent
2e8b8b98a2
commit
5a834ec5a3
14 changed files with 204 additions and 88 deletions
179
eww/eww.yuck
179
eww/eww.yuck
|
@ -31,8 +31,36 @@
|
|||
;; widgets
|
||||
|
||||
(defwidget workspaces []
|
||||
(literal
|
||||
:content workspace))
|
||||
(literal
|
||||
:content workspace))
|
||||
|
||||
;; (defwidget workspaces []
|
||||
;; (box
|
||||
;; :class "works"
|
||||
;; :orientation "h"
|
||||
;; :spacing 5
|
||||
;; :space-evenly "false"
|
||||
;; :valign "center"
|
||||
;; (button
|
||||
;; :onclick "hyprctl dispatch workspace 1"
|
||||
;; :onrightclick "hyprctl dispatch workspace 1 && $HOME/.config/hypr/themes/neon/scripts/default_app"
|
||||
;; :class "0$o1$f1" "")
|
||||
;; (button
|
||||
;; :onclick "hyprctl dispatch workspace 2"
|
||||
;; :onrightclick "hyprctl dispatch workspace 2 && $HOME/.config/hypr/themes/neon/scripts/default_app"
|
||||
;; :class "0$o2$f2" "")
|
||||
;; (button
|
||||
;; :onclick "hyprctl dispatch workspace 3"
|
||||
;; :onrightclick "hyprctl dispatch workspace 3 && $HOME/.config/hypr/themes/neon/scripts/default_app"
|
||||
;; :class "0$o3$f3" "")
|
||||
;; (button
|
||||
;; :onclick "hyprctl dispatch workspace 4"
|
||||
;; :onrightclick "hyprctl dispatch workspace 4 && $HOME/.config/hypr/themes/neon/scripts/default_app"
|
||||
;; :class "0$o4$f4" "")
|
||||
;; (button
|
||||
;; :onclick "hyprctl dispatch workspace 5"
|
||||
;; :onrightclick "hyprctl dispatch workspace 5 && $HOME/.config/hypr/themes/neon/scripts/default_app"
|
||||
;; :class "0$o5$f5" "")))
|
||||
|
||||
(defwidget appnames []
|
||||
(eventbox
|
||||
|
@ -64,57 +92,58 @@
|
|||
:class "app-button"
|
||||
:onclick "hyprctl dispatch killactive 1" ""))))))
|
||||
|
||||
(defwidget bright []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update br_reveal=true"
|
||||
:onhoverlost "${EWW_CMD} update br_reveal=false"
|
||||
:visible {HOST == "kaladin" ? "false" : "true"}
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly "false"
|
||||
:orientation "h"
|
||||
:spacing "3"
|
||||
(scale
|
||||
:class "brightbar"
|
||||
:value brightness_percent
|
||||
:orientation "h"
|
||||
:tooltip "${brightness_percent}%"
|
||||
:max 100
|
||||
:min 0
|
||||
:onchange "brightnessctl s {}%" )
|
||||
(label
|
||||
:text ""
|
||||
:class "bright_icon"
|
||||
:tooltip "brightness"))))
|
||||
;; (defwidget bright []
|
||||
;; (eventbox
|
||||
;; :onhover "${EWW_CMD} update br_reveal=true"
|
||||
;; :onhoverlost "${EWW_CMD} update br_reveal=false"
|
||||
;; :visible {HOST == "kaladin" ? "false" : "true"}
|
||||
;; (box
|
||||
;; :class "module"
|
||||
;; :space-evenly "false"
|
||||
;; :orientation "h"
|
||||
;; :spacing "3"
|
||||
;; (scale
|
||||
;; :class "brightbar"
|
||||
;; :value brightness_percent
|
||||
;; :orientation "h"
|
||||
;; :tooltip "${brightness_percent}%"
|
||||
;; :max 100
|
||||
;; :min 0
|
||||
;; :onchange "brightnessctl s {}%" )
|
||||
;; (label
|
||||
;; :text ""
|
||||
;; :class "bright_icon"
|
||||
;; :tooltip "brightness"))))
|
||||
|
||||
(defwidget volume []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update vol_reveal=true"
|
||||
:onhoverlost "${EWW_CMD} update vol_reveal=false"
|
||||
(box
|
||||
:class "module-2"
|
||||
:space-evenly "false"
|
||||
:orientation "h"
|
||||
:spacing "3"
|
||||
(scale
|
||||
:class "volbar"
|
||||
:value volume_percent
|
||||
:draw-value: true
|
||||
:orientation "h"
|
||||
:tooltip "${volume_percent}%"
|
||||
:max 150
|
||||
:min 0
|
||||
:onchange "pamixer --set-volume {}" )
|
||||
(button
|
||||
:onclick "scripts/pop audio"
|
||||
:class "volume_icon"
|
||||
"墳"))))
|
||||
;; (defwidget volume []
|
||||
;; (eventbox
|
||||
;; :onhover "${EWW_CMD} update vol_reveal=true"
|
||||
;; :onhoverlost "${EWW_CMD} update vol_reveal=false"
|
||||
;; (box
|
||||
;; :class "module-2"
|
||||
;; :space-evenly "false"
|
||||
;; :orientation "h"
|
||||
;; :spacing "3"
|
||||
;; (scale
|
||||
;; :class "volbar"
|
||||
;; :value volume_percent
|
||||
;; :draw-value: true
|
||||
;; :orientation "h"
|
||||
;; :tooltip "${volume_percent}%"
|
||||
;; :max 150
|
||||
;; :min 0
|
||||
;; :onchange "pamixer --set-volume {}" )
|
||||
;; (button
|
||||
;; :onclick "scripts/pop audio"
|
||||
;; :class "volume_icon"
|
||||
;; "墳"))))
|
||||
|
||||
(defwidget wifi []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update wifi_rev=true"
|
||||
:onhoverlost "${EWW_CMD} update wifi_rev=false"
|
||||
(box
|
||||
:class "wifi"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
:space-evenly "false"
|
||||
|
@ -126,7 +155,7 @@
|
|||
:class "module_essid"
|
||||
:text ESSID_WLAN))
|
||||
(button
|
||||
:class "module-wif"
|
||||
:class "module-wifi"
|
||||
:onclick "networkmanager_dmenu"
|
||||
WLAN_ICON))))
|
||||
|
||||
|
@ -150,6 +179,46 @@
|
|||
:text "${round(EWW_BATTERY['BAT1'].capacity, 0)}%"
|
||||
:class "bat_label")))
|
||||
|
||||
(defwidget bright []
|
||||
(box
|
||||
:class "bright_module"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
:spacing 5
|
||||
(circular-progress
|
||||
:class "brightbar"
|
||||
:value brightness_percent
|
||||
:thickness 3
|
||||
(button
|
||||
:class "iconbright"
|
||||
;; :onclick "scripts/pop audio"
|
||||
:tooltip "${brightness_percent}%"
|
||||
""))
|
||||
(label
|
||||
:text brightness_percent
|
||||
:class "bright_label")))
|
||||
|
||||
(defwidget volume []
|
||||
(box
|
||||
:class "vol_module"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
:spacing 5
|
||||
(circular-progress
|
||||
:class "volbar"
|
||||
:value volume_percent
|
||||
:thickness 3
|
||||
:max 150
|
||||
:min 0
|
||||
(button
|
||||
:class "iconvol"
|
||||
:onclick "scripts/pop audio"
|
||||
:tooltip "${volume_percent}%"
|
||||
"墳"))
|
||||
(label
|
||||
:text volume_percent
|
||||
:class "vol_label")))
|
||||
|
||||
(defwidget cpu []
|
||||
(box
|
||||
:class "cpu_module"
|
||||
|
@ -205,13 +274,7 @@
|
|||
:spacing "0"
|
||||
(label
|
||||
:text clock_full
|
||||
:class "clock_time_class" )
|
||||
(revealer :transition "slideleft"
|
||||
:reveal {HOST == "kaladin" ? false : time_rev}
|
||||
:duration "250ms"
|
||||
(button
|
||||
:class "clock_date_class"
|
||||
:onclick "scripts/pop calendar" clock_date)))))
|
||||
:class "clock_time_class" ))))
|
||||
|
||||
(defwidget notif_button []
|
||||
(box
|
||||
|
@ -274,14 +337,14 @@
|
|||
:space-evenly false
|
||||
:halign "end"
|
||||
:class "right_modules"
|
||||
(bright)
|
||||
(volume)
|
||||
(wifi)
|
||||
(sep)
|
||||
(cpu)
|
||||
(mem)
|
||||
(volume)
|
||||
(bright)
|
||||
(bat)
|
||||
(sep)
|
||||
(wifi)
|
||||
(notif_button)
|
||||
(nextcloud_button)))
|
||||
|
||||
|
@ -300,7 +363,7 @@
|
|||
:x "15px"
|
||||
:y "3px"
|
||||
:width "100%"
|
||||
:height "0px"
|
||||
:height "60px"
|
||||
:anchor "bottom center")
|
||||
:stacking "fg"
|
||||
:windowtype "dock"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue