New backup 2025-09-06 13:30:02

This commit is contained in:
Penelope Gwen 2025-09-06 13:30:02 -07:00
parent f8c668b68f
commit 6ff58a689d
5 changed files with 10 additions and 6 deletions

View file

@ -4,4 +4,5 @@
(box (box
:class "idle-inhibitor ${inhibit_active ? 'active' : 'inactive'}" :class "idle-inhibitor ${inhibit_active ? 'active' : 'inactive'}"
(button :onclick {inhibit_active ? 'killall eww-idle-inhibit;eww update inhibit_active=false' : 'systemd-inhibit --what="idle" --mode="block" scripts/bar/eww-idle-inhibit & eww update inhibit_active=true'} (button :onclick {inhibit_active ? 'killall eww-idle-inhibit;eww update inhibit_active=false' : 'systemd-inhibit --what="idle" --mode="block" scripts/bar/eww-idle-inhibit & eww update inhibit_active=true'}
{inhibit_active ? "" : ""}))) :tooltip "Idling is ${inhibit_active ? '' : 'not '}inhibited"
{inhibit_active ? "" : ""})))

View file

@ -6,6 +6,7 @@
:revealvar-name "reveal_powermenu" :revealvar-name "reveal_powermenu"
(button :onclick 'scripts/bar/powermenu poweroff system-shutdown-symbolic "systemctl poweroff"' (button :onclick 'scripts/bar/powermenu poweroff system-shutdown-symbolic "systemctl poweroff"'
:class "revealer-preview" :class "revealer-preview"
:tooltip "Poweroff"
"") "")
(powermenu_children))) (powermenu_children)))
@ -15,10 +16,14 @@
:space-evenly false :space-evenly false
:halign "center" :halign "center"
(button :onclick 'scripts/bar/powermenu reboot system-reboot-symbolic "systemctl reboot"' (button :onclick 'scripts/bar/powermenu reboot system-reboot-symbolic "systemctl reboot"'
:tooltip "Reboot"
"") "")
(button :onclick 'scripts/bar/powermenu suspend weather-clear-night-symbolic "systemctl suspend"' (button :onclick 'scripts/bar/powermenu suspend weather-clear-night-symbolic "systemctl suspend"'
:tooltip "Suspend"
"󰤄") "󰤄")
(button :onclick 'scripts/bar/powermenu lock system-lock-screen-symbolic "sp-lock"' (button :onclick 'scripts/bar/powermenu lock system-lock-screen-symbolic "sp-lock"'
:tooltip "Lock"
"") "")
(button :onclick 'scripts/bar/powermenu logout system-log-out-symbolic "swaymsg exit"' (button :onclick 'scripts/bar/powermenu logout system-log-out-symbolic "swaymsg exit"'
:tooltip "Log Out"
""))) "")))

View file

@ -2,5 +2,6 @@
(deflisten active_profile_name "scripts/bar/profile-name") (deflisten active_profile_name "scripts/bar/profile-name")
(defwidget profile [] (defwidget profile []
(button :onclick "sp-profiles next" (button :onclick "sp-profiles next"
:tooltip "${active_profile_name}"
:class "profile ${((active_profile_name == 'Work') ? 'profile-work' : ((active_profile_name == 'Housing') ? 'profile-housing' : ((active_profile_name == 'Development') ? 'profile-development' : ((active_profile_name == 'Personal') ? 'profile-personal' : ''))))}" :class "profile ${((active_profile_name == 'Work') ? 'profile-work' : ((active_profile_name == 'Housing') ? 'profile-housing' : ((active_profile_name == 'Development') ? 'profile-development' : ((active_profile_name == 'Personal') ? 'profile-personal' : ''))))}"
{active_profile})) {active_profile}))

View file

@ -5,6 +5,7 @@
:revealvar reveal_volume :revealvar reveal_volume
:revealvar-name "reveal_volume" :revealvar-name "reveal_volume"
(button :onclick 'pavucontrol-qt --tab 3' (button :onclick 'pavucontrol-qt --tab 3'
:tooltip "Pulseaudio Volume Control"
:class "${(volume == 0) ? 'inactive' : 'active'} revealer-preview" :class "${(volume == 0) ? 'inactive' : 'active'} revealer-preview"
{(volume == 0) ? "" : ((volume > 50) ? "" : "")}) {(volume == 0) ? "" : ((volume > 50) ? "" : "")})
(volume_children))) (volume_children)))
@ -17,6 +18,7 @@
:space-evenly false :space-evenly false
:halign "center" :halign "center"
(scale (scale
:tooltip "volume: ${round(volume,0)}%"
:min 0 :min 0
:max 100 :max 100
:value {volume} :value {volume}

View file

@ -2,10 +2,5 @@
:interval "60s" :interval "60s"
"scripts/bar/activewindow") "scripts/bar/activewindow")
(defwidget windowtitle [] (defwidget windowtitle []
; (box :class "bar-module"
; :space-evenly false
; (button :onclick 'sp-profiles next'
; (label :text '${active_profile}'))
(label :class {active_window_name != "" ? "active_window" : ""} (label :class {active_window_name != "" ? "active_window" : ""}
:text {active_window_name})) :text {active_window_name}))
;)