From a0ddd01aa6dfca8401df11f197bd84aad58a7a72 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Tue, 17 Feb 2026 21:15:02 -0800 Subject: [PATCH] New backup 2026-02-17 21:15:02 --- de/home/.config/eww/modules/bar/volume.yuck | 32 ++++----- de/home/.config/eww/modules/bar/vpn.yuck | 24 +++---- .../.config/eww/modules/bar/window_name.yuck | 8 +-- .../.config/eww/modules/bar/window_name1.yuck | 5 +- .../.config/eww/modules/bar/workspaces.yuck | 72 +++++++++---------- 5 files changed, 64 insertions(+), 77 deletions(-) diff --git a/de/home/.config/eww/modules/bar/volume.yuck b/de/home/.config/eww/modules/bar/volume.yuck index c8c6921..6822de9 100644 --- a/de/home/.config/eww/modules/bar/volume.yuck +++ b/de/home/.config/eww/modules/bar/volume.yuck @@ -1,27 +1,25 @@ (defvar reveal_volume false) (defwidget volume [] - (revealer-on-hover - :class "volume ${reveal_volume}" - :revealvar reveal_volume - :revealvar-name "reveal_volume" - (button :onclick 'pavucontrol-qt --tab 3' - :tooltip "Pulseaudio Volume Control" - :class "${(volume == 0) ? 'inactive' : 'active'} revealer-preview" + (revealer-on-hover :class "volume ${reveal_volume}" + :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))) (deflisten volume :initial "50" "scripts/bar/volume") (defwidget volume_children [] - (box :class "reveal-children" - :orientation "h" - :space-evenly false - :halign "center" + (box :class "reveal-children" :orientation "h" + :space-evenly false + :halign "center" (scale - :tooltip "volume: ${round(volume,0)}%" - :min 0 - :max 100 - :value {volume} - :orientation "h" - :onchange "wpctl set-volume @DEFAULT_AUDIO_SINK@ {}%;paplay 'volume.ogg'"))) + :tooltip "volume: ${round(volume,0)}%" + :min 0 + :max 100 + :value {volume} + :orientation "h" + :onchange "wpctl set-volume @DEFAULT_AUDIO_SINK@ {}%;paplay 'volume.ogg'"))) diff --git a/de/home/.config/eww/modules/bar/vpn.yuck b/de/home/.config/eww/modules/bar/vpn.yuck index d13e0c3..e9aaebb 100644 --- a/de/home/.config/eww/modules/bar/vpn.yuck +++ b/de/home/.config/eww/modules/bar/vpn.yuck @@ -10,23 +10,19 @@ (vpn_children :array "${jq(network_manager.vpns,'.|sort_by(.name)')}"))) (defwidget vpn_children [array] - (box :class "reveal-children" - :orientation "h" - :space-evenly false - :halign "center" + (box :class "reveal-children" + :orientation "h" + :space-evenly false + :halign "center" (for vpn in array (button :onclick "nmcli connection ${( vpn.active == 'yes' ? 'down' : 'up' )} ${vpn.name}" - :class {( vpn.active == "yes" ? 'active' : 'inactive' )} - :tooltip "${vpn.name}" + :class {( vpn.active == "yes" ? 'active' : 'inactive' )} + :tooltip "${vpn.name}" "${( vpn.name =~ '^[Hh]ome.*' ? ( vpn.name =~ '.*[Ff]ull.*' ? '' : '') : - ( vpn.name =~ '^pia-.*' ? - ( vpn.name =~ '.*local.*' ? '' : '' ) : + ( vpn.name =~ '^pia-.*' ? + ( vpn.name =~ '.*local.*' ? '' : '' ) : ( vpn.name == 'SCA' ? - '' : + '' : '') ) - )} ${( vpn.active == 'yes' ? '' : '' )}" - ) - ) - ) -) + )} ${( vpn.active == 'yes' ? '' : '' )}")))) diff --git a/de/home/.config/eww/modules/bar/window_name.yuck b/de/home/.config/eww/modules/bar/window_name.yuck index 71442cf..d4062b8 100644 --- a/de/home/.config/eww/modules/bar/window_name.yuck +++ b/de/home/.config/eww/modules/bar/window_name.yuck @@ -1,5 +1,5 @@ (defwidget windowtitle [] - (label :class {jq(sway_info,'.window_info.title','r') != "" ? "active_window" : ""} - :limit-width 40 - :show-truncated true - :text {jq(sway_info,'.window_info.title','r')})) + (label :class {jq(sway_info,'.window_info.title','r') != "" ? "active_window" : ""} + :limit-width 40 + :show-truncated true + :text {jq(sway_info,'.window_info.title','r')})) diff --git a/de/home/.config/eww/modules/bar/window_name1.yuck b/de/home/.config/eww/modules/bar/window_name1.yuck index 1063918..6cdcbd3 100644 --- a/de/home/.config/eww/modules/bar/window_name1.yuck +++ b/de/home/.config/eww/modules/bar/window_name1.yuck @@ -1,6 +1,7 @@ (deflisten active_window_name :initial "" :interval "60s" "scripts/bar/activewindow") + (defwidget windowtitle [] - (label :class {active_window_name != "" ? "active_window" : ""} - :text {active_window_name})) + (label :class {active_window_name != "" ? "active_window" : ""} + :text {active_window_name})) diff --git a/de/home/.config/eww/modules/bar/workspaces.yuck b/de/home/.config/eww/modules/bar/workspaces.yuck index 6eeec3f..4e2b965 100644 --- a/de/home/.config/eww/modules/bar/workspaces.yuck +++ b/de/home/.config/eww/modules/bar/workspaces.yuck @@ -1,47 +1,39 @@ (defvar wsreveal false) (defwidget workspaces [array] - (eventbox - :onhover "${EWW_CMD} update wsreveal=true" - :onhoverlost "${EWW_CMD} update wsreveal=false" - (box :class "workspaces ${((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Work') ? 'profile-work' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == '20') ? 'profile-school' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == '10') ? 'profile-development' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == '0') ? 'profile-personal' : ''))))}" - :orientation "h" - :space-evenly false - :halign "start" - - (revealer - :class "ws-left" - :reveal wsreveal - :transition "slideleft" - :duration "500ms" - (box - (for entry in array - (literal - :visible {((entry.position == 'l') && !entry.is_focused) ? true : false} - :content {((entry.position == 'l') && !entry.is_focused) ? "(workspace :ws entry :side 'left')" : "(box :visible false)"})))) - (box - :class "ws-center ${wsreveal}" - (for entry in array - (literal - :visible {entry.is_focused ? true : false} - :content {entry.is_focused ? "(workspace :ws entry :side 'center' :lastws ${jq(array,'.[-1].num')})" : "(box :visible false)"}))) - (revealer - :class "ws-right" - :reveal wsreveal - :transition "slideright" - :duration "500ms" - (box - (for entry in array - (literal - :visible {((entry.position == 'r') && !entry.is_focused) ? true : false} - :content {((entry.position == 'r') && !entry.is_focused) ? "(workspace :ws entry :side 'right')" : "(box :visible false)"}))))))) + (eventbox :onhover "${EWW_CMD} update wsreveal=true" + :onhoverlost "${EWW_CMD} update wsreveal=false" + (box :class "workspaces ${((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Work') ? 'profile-work' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == '20') ? 'profile-school' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == '10') ? 'profile-development' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == '0') ? 'profile-personal' : ''))))}" + :orientation "h" + :space-evenly false + :halign "start" + (revealer + :class "ws-left" + :reveal wsreveal + :transition "slideleft" + :duration "500ms" + (box + (for entry in array + (literal :visible {((entry.position == 'l') && !entry.is_focused) ? true : false} + :content {((entry.position == 'l') && !entry.is_focused) ? "(workspace :ws entry :side 'left')" : "(box :visible false)"})))) + (box :class "ws-center ${wsreveal}" + (for entry in array + (literal :visible {entry.is_focused ? true : false} + :content {entry.is_focused ? "(workspace :ws entry :side 'center' :lastws ${jq(array,'.[-1].num')})" : "(box :visible false)"}))) + (revealer :class "ws-right" + :reveal wsreveal + :transition "slideright" + :duration "500ms" + (box + (for entry in array + (literal :visible {((entry.position == 'r') && !entry.is_focused) ? true : false} + :content {((entry.position == 'r') && !entry.is_focused) ? "(workspace :ws entry :side 'right')" : "(box :visible false)"}))))))) (defwidget workspace [ws side ?lastws ?firstws] - (button :onclick `swaymsg workspace "${ws.name}"` - :tooltip "${ws.profile_name} ( ${jq(captures(ws.num, '[0-9]$'),'.[].[]','r')} )" - :class '${side} ${ws.num == lastws ? "last-workspace" : (ws.num == firstws ? "first-workspace" : "middle-workspace")} profile-${jq(ws,'.profile_name','r')}' + (button :onclick `swaymsg workspace "${ws.name}"` + :tooltip "${ws.profile_name} ( ${jq(captures(ws.num, '[0-9]$'),'.[].[]','r')} )" + :class '${side} ${ws.num == lastws ? "last-workspace" : (ws.num == firstws ? "first-workspace" : "middle-workspace")} profile-${jq(ws,'.profile_name','r')}' (box '${replace(ws.name,".*:","")}' - (label - :class "workspace-number" - :text {jq(captures(ws.num, '[0-9]$'),'.[].[]','r')})))) + (label :class "workspace-number" + :text {jq(captures(ws.num, '[0-9]$'),'.[].[]','r')}))))