From 24d83501aceb3565021bae7299a393c39f23f471 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Tue, 17 Feb 2026 20:15:01 -0800 Subject: [PATCH] New backup 2026-02-17 20:15:01 --- de/home/.config/eww/modules/bar.yuck | 51 ++++++-------------- de/home/.config/eww/modules/bar/battery.yuck | 33 ++++++------- 2 files changed, 30 insertions(+), 54 deletions(-) diff --git a/de/home/.config/eww/modules/bar.yuck b/de/home/.config/eww/modules/bar.yuck index b8028fc..1edd0d3 100644 --- a/de/home/.config/eww/modules/bar.yuck +++ b/de/home/.config/eww/modules/bar.yuck @@ -8,53 +8,31 @@ (include "modules/bar/revealer-on-hover.yuck") (include "modules/bar/metric.yuck") -;widget scripts -;(deflisten active_profile_name "scripts/bar/profile-name") - ;centerbar groups (defwidget leftgroup [] - (box :class "leftgroup ${((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') == 'School') ? 'profile-school' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Development') ? 'profile-development' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Penelope') ? 'profile-personal' : ''))))}" - :orientation "h" - :space-evenly false - :halign "start" + (box :class "leftgroup ${((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') == 'School') ? 'profile-school' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Development') ? 'profile-development' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Penelope') ? 'profile-personal' : ''))))}" + :orientation "h" + :space-evenly false + :halign "start" (powermenu) (profile) (workspaces :array {jq(sway_info,'.workspace_info','r')}) (scratchpad) (windowtitle))) -;(deflisten scratchpadArray :initial "${[1]}" -; 'scripts/bar/scratchpad') -;(defwidget scratchpad [array] -; (box :orientation "v" -; :space-evenly false -; :class "workspaces" -; (box :space-evenly false -; (for entry in array -; (button :onclick 'swaymsg [con_id=${entry.win_id}] focus' -; :tooltip "${entry.name} -;${entry.title}" -; (image :path {entry.icon} -; :image-width 25 -; :image-height 25) -; ))))) -; (image :path "/usr/share/icons/hicolor/scalable/apps/org.kde.dolphin.svg" -; :image-width 25 -; :image-height 25) -; (image :path "/usr/share/icons/hicolor/32x32/apps/librewolf.png" -; :image-width 25 -; :image-height 25 -; ))) - (defwidget centergroup [] -; (box :visible {nowplaying != ""} - (box :visible false - :class "centergroup" :orientation "h" :space-evenly false :halign "start")) -; (music))) + (box :visible false + :class "centergroup" + :orientation "h" + :space-evenly false + :halign "start")) (defwidget rightgroup [] - (box :class "rightgroup" :orientation "h" :space-evenly false :halign "end" + (box :class "rightgroup" + :orientation "h" + :space-evenly false + :halign "end" (idleinhibit) (volume) (network) @@ -70,7 +48,7 @@ (include "variables/bar/profile-info.yuck") (include "variables/bar/sway-info.yuck") -;leftgroup +;leftgroup imports (include "modules/bar/powermenu.yuck") (include "modules/bar/profile.yuck") (include "modules/bar/workspaces.yuck") @@ -84,7 +62,6 @@ ;rightgroup (include "modules/bar/idle_inhibit.yuck") (include "modules/bar/volume.yuck") -;(include "variables/bar/network.yuck") (include "variables/bar/network-manager.yuck") (include "modules/bar/network.yuck") (include "modules/bar/vpn.yuck") diff --git a/de/home/.config/eww/modules/bar/battery.yuck b/de/home/.config/eww/modules/bar/battery.yuck index 9406411..c26839f 100644 --- a/de/home/.config/eww/modules/bar/battery.yuck +++ b/de/home/.config/eww/modules/bar/battery.yuck @@ -1,22 +1,21 @@ (defvar reveal_battery false) + (defwidget battery [] - (revealer-on-hover - :class "${reveal_battery} battery" - :revealvar reveal_battery - :revealvar-name "reveal_battery" - (label - :class "revealer-preview ${(EWW_BATTERY == '' || jq(EWW_BATTERY,'.[].status?','r') == 'Charging') ? 'active' : '' }" - :tooltip `${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? "Charging" : "Discharging"}, ${(EWW_BATTERY == "") ? "" : "${round(jq(EWW_BATTERY,'.total_avg?'),1)}% of total average"}` - :text `${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? " " : "󰁹 "}${(EWW_BATTERY == "") ? "" : "${round(jq(EWW_BATTERY,'first(.[].capacity?)'),0)}%"}`) + (revealer-on-hover :class "${reveal_battery} battery" + :revealvar reveal_battery + :revealvar-name "reveal_battery" + (label :class "revealer-preview ${(EWW_BATTERY == '' || jq(EWW_BATTERY,'.[].status?','r') == 'Charging') ? 'active' : '' }" + :tooltip `${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? "Charging" : "Discharging"}, ${(EWW_BATTERY == "") ? "" : "${round(jq(EWW_BATTERY,'.total_avg?'),1)}% of total average"}` + :text `${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? " " : "󰁹 "}${(EWW_BATTERY == "") ? "" : "${round(jq(EWW_BATTERY,'first(.[].capacity?)'),0)}%"}`) (battery_children))) + (defwidget battery_children [] - (box :class "reveal-children" - :orientation "h" - :space-evenly false - :halign "center" + (box :class "reveal-children" + :orientation "h" + :space-evenly false + :halign "center" (box - (progress - :height 10 - :valign "center" - :value {(EWW_BATTERY == "") ? 100 : jq(EWW_BATTERY,'first(.[].capacity?)')} - :orientation "h")))) + (progress :height 10 + :valign "center" + :value {(EWW_BATTERY == "") ? 100 : jq(EWW_BATTERY,'first(.[].capacity?)')} + :orientation "h"))))