From 9955322e039062c0d0472a3af164ec48bf9bf106 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Fri, 18 Jul 2025 11:00:03 -0700 Subject: [PATCH] New backup 2025-07-18 11:00:03 --- de/home/.config/eww/eww.scss | 9 ++++++++- de/home/.config/eww/modules/bar/battery.yuck | 2 +- de/home/.config/eww/modules/bar/idle_inhibit.yuck | 2 +- de/home/.config/eww/modules/bar/network.yuck | 6 +++--- de/home/.config/eww/modules/bar/vpn.yuck | 6 +++--- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/de/home/.config/eww/eww.scss b/de/home/.config/eww/eww.scss index 72889b3..9643fc6 100644 --- a/de/home/.config/eww/eww.scss +++ b/de/home/.config/eww/eww.scss @@ -157,11 +157,15 @@ label { color: $bar-module-fg-color; padding: 3px 4px; min-width: $bar-module-width; + .inactive { + color: $bar-module-inactive-fg-color + } } .workspaces button:hover, .rightgroup button:hover, .leftgroup button:hover { - background-color: $bar-hover-bg-color; +// background-color: $bar-hover-bg-color; + text-shadow: $bar-hover-bg-color; color: $bar-hover-fg-color; transition-property: background-color; transition-duration: .25s; @@ -175,6 +179,9 @@ button.active { text-shadow: $bar-module-active-shadow; color: $bar-module-fg-color; } +button.inactive { + color: $bar-module-inactive-fg-color; +} .workspaces button:first-child { //.reveal_children>box:first-child, //.reveal_children>scale:first-child, diff --git a/de/home/.config/eww/modules/bar/battery.yuck b/de/home/.config/eww/modules/bar/battery.yuck index 1edff66..48e7e01 100644 --- a/de/home/.config/eww/modules/bar/battery.yuck +++ b/de/home/.config/eww/modules/bar/battery.yuck @@ -7,7 +7,7 @@ :class {(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? "active" : "" } ; :tooltip "${jq(EWW_BATTERY,'.[].capacity?')}%" ; {(EWW_BATTERY == "") ? "" : `${(jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? " ${jq(EWW_BATTERY,'.[].capacity?')}%" : " ${jq(EWW_BATTERY,'.[].capacity?')}%"}`}) - :text `${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? " " : "󰁹 "}${(EWW_BATTERY == "") ? "" : "${jq(EWW_BATTERY,'.[].capacity?')}%"}`) + :text `${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? " " : "󰁹 "}${(EWW_BATTERY == "") ? "" : "${round(jq(EWW_BATTERY,'.[].capacity?'),0)}%"}`) (battery_children))) ; ${jq(EWW_BATTERY,'.[].capacity?')}%"} (defwidget battery_children [] diff --git a/de/home/.config/eww/modules/bar/idle_inhibit.yuck b/de/home/.config/eww/modules/bar/idle_inhibit.yuck index 4ce4f6f..28f8254 100644 --- a/de/home/.config/eww/modules/bar/idle_inhibit.yuck +++ b/de/home/.config/eww/modules/bar/idle_inhibit.yuck @@ -2,5 +2,5 @@ (defwidget idleinhibit [] (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'} - :class {inhibit_active ? "active" : ""} + :class {inhibit_active ? "active" : "inactive"} {inhibit_active ? "" : ""})) diff --git a/de/home/.config/eww/modules/bar/network.yuck b/de/home/.config/eww/modules/bar/network.yuck index 015444d..f5c3aad 100644 --- a/de/home/.config/eww/modules/bar/network.yuck +++ b/de/home/.config/eww/modules/bar/network.yuck @@ -4,7 +4,7 @@ :revealvar reveal_network :revealvar-name "reveal_network" (button :onclick 'nm-connection-editor' - :class {network_status.wifi || network_status.wired ? "active" : ""} + :class {network_status.wifi || network_status.wired ? "active" : "inactive"} "󰇧") (network_children))) @@ -14,8 +14,8 @@ :space-evenly false :halign "center" (button :onclick {network_status.wifi ? 'scripts/bar/network-updown wifi down' : 'scripts/bar/network-updown wifi up'} - :class {network_status.wifi ? "active" : ""} + :class {network_status.wifi ? "active" : "inactive"} "") (button :onclick {network_status.wired ? 'scripts/bar/network-updown ethernet down' : 'scripts/bar/network-updown ethernet up'} - :class {network_status.wired ? "active" : ""} + :class {network_status.wired ? "active" : "inactive"} "󰈀"))) diff --git a/de/home/.config/eww/modules/bar/vpn.yuck b/de/home/.config/eww/modules/bar/vpn.yuck index 4fd3e88..fc3d1fe 100644 --- a/de/home/.config/eww/modules/bar/vpn.yuck +++ b/de/home/.config/eww/modules/bar/vpn.yuck @@ -4,7 +4,7 @@ :revealvar reveal_vpn :revealvar-name "reveal_vpn" (button :onclick 'notify-send "test"' - :class {network_status.proton || network_status.homevpn ? "active" : ""} + :class {network_status.proton || network_status.homevpn ? "active" : "inactive"} {network_status.proton || network_status.homevpn ? "" : ""}) (vpn_children))) @@ -14,8 +14,8 @@ :space-evenly false :halign "center" (button :onclick 'scripts/bar/nmcli-vpn "HomeVPN"' - :class {network_status.homevpn ? "active" : ""} + :class {network_status.homevpn ? "active" : "inactive"} {network_status.homevpn ? " " : " "}) (button :onclick 'scripts/bar/nmcli-vpn "Proton SE-NL"' - :class {network_status.proton ? "active" : ""} + :class {network_status.proton ? "active" : "inactive"} {network_status.proton ? "󰇧 " : "󰇧 "})))