Compare commits

...

6 commits

2 changed files with 15 additions and 15 deletions

View file

@ -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

View file

@ -51,7 +51,8 @@ print_network_status() {
"$(print_infos "$device")"
}
while :; do
print_network_status
tail -f -n 0 /run/dhcpcd/log /var/log/iwd/current | \
while read -r _unused; do
print_network_status
sleep 5
done