Compare commits

...

6 commits

2 changed files with 15 additions and 15 deletions

View file

@ -1,6 +1,6 @@
(deflisten batterystatus (deflisten batterystatus
:initial "unknown" :initial "unknown"
"listen/battery BAT1" "listen/battery BAT0"
) )
(deflisten workspaces (deflisten workspaces
@ -63,7 +63,7 @@
"absent": "󰕿", "absent": "󰕿",
"moderate": "󰖀", "moderate": "󰖀",
"loud": "󰕾", "loud": "󰕾",
"muted": "󰖁" "muted": "󰝟"
}') }')
(defwidget workspaces [] (defwidget workspaces []
@ -90,9 +90,10 @@
(box "${windowtitle ?: ''}") (box "${windowtitle ?: ''}")
) )
(defwidget tray [] (box (defwidget tray [] (box (systray
(systray :icon-size 15 :spacing 10) :icon-size 15
)) :spacing 10
)))
(defwidget time [] (defwidget time []
(box (eventbox (box (eventbox
@ -122,7 +123,7 @@
(defwidget sound [] (defwidget sound []
(box (eventbox (box (eventbox
:onscroll 'action/volume "{}"' :onscroll 'action/volume "{}"'
:onclick 'pavucontrol & disown' :onclick 'hyprctl dispatch exec pavucontrol'
"${ "${
sound.output-muted == true ? sound-icon["muted"] : sound.output-muted == true ? sound-icon["muted"] :
@ -139,17 +140,15 @@
? network-icon["wifi-${network.wifi.signal}"] ? network-icon["wifi-${network.wifi.signal}"]
: network-icon[network.state] : network-icon[network.state]
} ${ } ${
network.state == "disconnected" network.state == "disconnected" ? "No network" :
? "no network" : network.state == "ethernet" ? "Ethernet" :
network.state == "ethernet" network.state == "wireless" ? network.wifi.ssid :
? "wired" : network.state == "tethering" ? "USB tethering" : ''
network.state == "wireless"
? network.wifi.ssid : ''
}" }"
) )
(defwidget battery [] (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 (defwindow bar

View file

@ -51,7 +51,8 @@ print_network_status() {
"$(print_infos "$device")" "$(print_infos "$device")"
} }
while :; do
print_network_status 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 done