New backup 2025-07-18 11:00:03
This commit is contained in:
parent
cabdb88e8b
commit
9955322e03
5 changed files with 16 additions and 9 deletions
|
@ -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,
|
||||
|
|
|
@ -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 []
|
||||
|
|
|
@ -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 ? "" : ""}))
|
||||
|
|
|
@ -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"}
|
||||
"")))
|
||||
|
|
|
@ -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 ? " " : " "})))
|
||||
|
|
Loading…
Add table
Reference in a new issue