This commit is contained in:
2023-04-12 20:32:07 +02:00
committed by soraefir
parent 10fbbc2654
commit a7ef5cf996
96 changed files with 5857 additions and 4 deletions

23
home/gui/eww/scripts/flightmode Executable file
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