Compare commits

..

No commits in common. "3c191ef7a69a01d378e000c43823007325385e80" and "edf168c7dcf7b8b38ccb8be197ebd7aa536dbfcb" have entirely different histories.

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

View file

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