updating a lot of hyprland config pieces
This commit is contained in:
parent
28645f7175
commit
d9cf8e32a7
9 changed files with 245 additions and 172 deletions
185
eww/eww.yuck
185
eww/eww.yuck
|
@ -2,6 +2,7 @@
|
|||
|
||||
(include "sidebar.yuck")
|
||||
(include "notifications.yuck")
|
||||
(include "battery.yuck")
|
||||
|
||||
(defpoll clock_time :interval "5s" "date '+\%l:\%M \%p'")
|
||||
(defpoll clock_date :interval "1h" "date '+%b %d, %Y'")
|
||||
|
@ -61,55 +62,48 @@
|
|||
:onclick "hyprctl dispatch killactive 1" ""))))))
|
||||
|
||||
(defwidget bright []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update br_reveal=true"
|
||||
:onhoverlost "${EWW_CMD} update br_reveal=false"
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly "false"
|
||||
:orientation "h"
|
||||
:spacing "3"
|
||||
(revealer
|
||||
:transition "slideright"
|
||||
:reveal br_reveal
|
||||
:duration "250ms"
|
||||
(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"))))
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update br_reveal=true"
|
||||
:onhoverlost "${EWW_CMD} update br_reveal=false"
|
||||
(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"
|
||||
(revealer
|
||||
:transition "slideright"
|
||||
:reveal vol_reveal
|
||||
:duration "250ms"
|
||||
(scale
|
||||
:class "volbar"
|
||||
:value volume_percent
|
||||
:orientation "h"
|
||||
:tooltip "${volume_percent}%"
|
||||
:max 100
|
||||
:min 0
|
||||
:onchange "pamixer --set-volume {}" ))
|
||||
(button
|
||||
:onclick "scripts/pop audio"
|
||||
:class "volume_icon"
|
||||
"墳"))))
|
||||
(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
|
||||
:orientation "h"
|
||||
:tooltip "${volume_percent}%"
|
||||
:max 100
|
||||
:min 0
|
||||
:onchange "pamixer --set-volume {}" )
|
||||
(button
|
||||
:onclick "scripts/pop audio"
|
||||
:class "volume_icon"
|
||||
"墳"))))
|
||||
|
||||
(defwidget wifi []
|
||||
(eventbox
|
||||
|
@ -195,23 +189,23 @@
|
|||
:hexpand "false"))
|
||||
|
||||
(defwidget clock_module []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update time_rev=true"
|
||||
:onhoverlost "${EWW_CMD} update time_rev=false"
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly "false"
|
||||
:orientation "h"
|
||||
:spacing "0"
|
||||
(label
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update time_rev=true"
|
||||
:onhoverlost "${EWW_CMD} update time_rev=false"
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly "false"
|
||||
:orientation "h"
|
||||
:spacing "0"
|
||||
(label
|
||||
:text clock_time
|
||||
:class "clock_time_class" )
|
||||
(revealer :transition "slideleft"
|
||||
:reveal time_rev
|
||||
:duration "250ms"
|
||||
(button
|
||||
:class "clock_date_class"
|
||||
:onclick "scripts/pop calendar" clock_date)))))
|
||||
(revealer :transition "slideleft"
|
||||
:reveal time_rev
|
||||
:duration "250ms"
|
||||
(button
|
||||
:class "clock_date_class"
|
||||
:onclick "scripts/pop calendar" clock_date)))))
|
||||
|
||||
(defwidget notif_button []
|
||||
(box
|
||||
|
@ -242,35 +236,36 @@
|
|||
|
||||
;;define widget groups
|
||||
(defwidget left []
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "start"
|
||||
:class "left_modules"
|
||||
(workspaces)))
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "start"
|
||||
:class "left_modules"
|
||||
:spacing 8
|
||||
(workspaces)
|
||||
(appnames)))
|
||||
(defwidget center []
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
:class "center_modules"
|
||||
(appnames)))
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
:class "center_modules"
|
||||
(clock_module)))
|
||||
(defwidget right []
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "end"
|
||||
:class "right_modules"
|
||||
(bright)
|
||||
(volume)
|
||||
(wifi)
|
||||
(sep)
|
||||
(bat)
|
||||
(cpu)
|
||||
(mem)
|
||||
(sep)
|
||||
(clock_module)
|
||||
(notif_button)))
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "end"
|
||||
:class "right_modules"
|
||||
(bright)
|
||||
(volume)
|
||||
(wifi)
|
||||
(sep)
|
||||
(bat)
|
||||
(cpu)
|
||||
(mem)
|
||||
(sep)
|
||||
(notif_button)))
|
||||
|
||||
(defwidget bar_layout []
|
||||
(centerbox
|
||||
|
@ -384,12 +379,12 @@
|
|||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
(scale
|
||||
:value mic_percent
|
||||
:orientation "h"
|
||||
:tooltip "mic on ${mic_percent}%"
|
||||
:onchange "amixer -D pulse sset Capture {}%"
|
||||
:max 100
|
||||
:min 0))))))
|
||||
:value mic_percent
|
||||
:orientation "h"
|
||||
:tooltip "mic on ${mic_percent}%"
|
||||
:onchange "amixer -D pulse sset Capture {}%"
|
||||
:max 100
|
||||
:min 0))))))
|
||||
(defwindow audio_ctl
|
||||
:stacking "fg"
|
||||
:focusable "false"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue