~kris/dots

srice

ref: e80c00e9faf41f4d43374471b330509f1c15769d srice/.config/eww/scripts/toggle_wifi.sh -rwxr-xr-x 178 bytes
e80c00e9 — Kris Yotam qutebrowser: sync Plan 9 acme theme from moirai 3 months ago
                                                                                
1
2
3
4
5
6
7
8
# Script: ~/.config/eww/scripts/toggle_wifi.sh
#!/bin/bash
status=$(nmcli radio wifi)
if [ "$status" = "enabled" ]; then
    nmcli radio wifi off
else
    nmcli radio wifi on
fi