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
: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'}
:tooltip "Idling is ${inhibit_active ? '' : 'not '}inhibited"
{inhibit_active ? "" : ""})))

View file

@ -6,6 +6,7 @@
:revealvar-name "reveal_powermenu"
(button :onclick 'scripts/bar/powermenu poweroff system-shutdown-symbolic "systemctl poweroff"'
:class "revealer-preview"
:tooltip "Poweroff"
"")
(powermenu_children)))
@ -15,10 +16,14 @@
:space-evenly false
:halign "center"
(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"'
:tooltip "Suspend"
"󰤄")
(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"'
:tooltip "Log Out"
"")))

View file

@ -2,5 +2,6 @@
(deflisten active_profile_name "scripts/bar/profile-name")
(defwidget profile []
(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' : ''))))}"
{active_profile}))

View file

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

View file

@ -2,10 +2,5 @@
:interval "60s"
"scripts/bar/activewindow")
(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" : ""}
:text {active_window_name}))
;)