Migrate to snowfall lib

This commit is contained in:
soraefir committed 2023-11-08 17:15:32 +01:00
1 parent a7ef5cf996
commit 99d64c588e
175 files changed
+3870 -4002

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
icon() {
[ "$STATUS" = "no" ] && echo "󰀞" || echo "󰀝"
}
toggle() {
if [ "$STATUS" = "no" ]; then
rfkill block all
else
rfkill unblock all
fi
}
if [ "$1" = "toggle" ]; then
toggle
else
icon
rfkill event | while read -r _; do
STATUS="$(rfkill list | sed -n 2p | awk '{print $3}')"
icon
done
fi