~kris/dots

srice

ref: f5fc91419850ee5f2652bdce0dcc214de18b4a22 srice/.config/eww/scripts/toggle_wifi.sh -rwxr-xr-x 178 bytes
f5fc9141 — Kris Yotam add wallpapermenu script (was untracked); auto-detect output so cw works on any machine 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