Compare commits
6 commits
edf168c7dc
...
3c191ef7a6
Author | SHA1 | Date | |
---|---|---|---|
3c191ef7a6 | |||
8a49491cff | |||
6badb08726 | |||
36992cf6aa | |||
2fa6fbea62 | |||
64f42ea981 |
2 changed files with 15 additions and 15 deletions
|
@ -1,6 +1,6 @@
|
|||
(deflisten batterystatus
|
||||
:initial "unknown"
|
||||
"listen/battery BAT1"
|
||||
"listen/battery BAT0"
|
||||
)
|
||||
|
||||
(deflisten workspaces
|
||||
|
@ -63,7 +63,7 @@
|
|||
"absent": "",
|
||||
"moderate": "",
|
||||
"loud": "",
|
||||
"muted": ""
|
||||
"muted": ""
|
||||
}')
|
||||
|
||||
(defwidget workspaces []
|
||||
|
@ -90,9 +90,10 @@
|
|||
(box "${windowtitle ?: ''}")
|
||||
)
|
||||
|
||||
(defwidget tray [] (box
|
||||
(systray :icon-size 15 :spacing 10)
|
||||
))
|
||||
(defwidget tray [] (box (systray
|
||||
:icon-size 15
|
||||
:spacing 10
|
||||
)))
|
||||
|
||||
(defwidget time []
|
||||
(box (eventbox
|
||||
|
@ -122,7 +123,7 @@
|
|||
(defwidget sound []
|
||||
(box (eventbox
|
||||
:onscroll 'action/volume "{}"'
|
||||
:onclick 'pavucontrol & disown'
|
||||
:onclick 'hyprctl dispatch exec pavucontrol'
|
||||
|
||||
"${
|
||||
sound.output-muted == true ? sound-icon["muted"] :
|
||||
|
@ -139,17 +140,15 @@
|
|||
? network-icon["wifi-${network.wifi.signal}"]
|
||||
: network-icon[network.state]
|
||||
} ${
|
||||
network.state == "disconnected"
|
||||
? "no network" :
|
||||
network.state == "ethernet"
|
||||
? "wired" :
|
||||
network.state == "wireless"
|
||||
? network.wifi.ssid : ''
|
||||
network.state == "disconnected" ? "No network" :
|
||||
network.state == "ethernet" ? "Ethernet" :
|
||||
network.state == "wireless" ? network.wifi.ssid :
|
||||
network.state == "tethering" ? "USB tethering" : ''
|
||||
}"
|
||||
)
|
||||
|
||||
(defwidget battery []
|
||||
"${battery-icon[batterystatus]}${EWW_BATTERY.BAT1.status == "Charging" ? " " : ""} ${EWW_BATTERY.BAT1.capacity} %"
|
||||
"${battery-icon[batterystatus]}${EWW_BATTERY.BAT0.status == "Charging" ? " " : ""} ${EWW_BATTERY.BAT0.capacity} %"
|
||||
)
|
||||
|
||||
(defwindow bar
|
||||
|
|
|
@ -51,7 +51,8 @@ print_network_status() {
|
|||
"$(print_infos "$device")"
|
||||
}
|
||||
|
||||
while :; do
|
||||
print_network_status
|
||||
sleep 5
|
||||
tail -f -n 0 /run/dhcpcd/log /var/log/iwd/current | \
|
||||
while read -r _unused; do
|
||||
print_network_status
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue