Add configuration for GNOME
This commit is contained in:
parent
46b9bacd18
commit
7804080953
47 changed files with 6899 additions and 0 deletions
27
.local/bin/wifi-toggle
Executable file
27
.local/bin/wifi-toggle
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Toggle the WiFi on or off
|
||||
|
||||
set -eu
|
||||
|
||||
|
||||
_notify() {
|
||||
command -v notify-send >/dev/null 2>&1 || return 0
|
||||
notify-send 'WiFi' "$1"
|
||||
}
|
||||
|
||||
|
||||
case "$(nmcli -t radio wifi)" in
|
||||
enabled)
|
||||
nmcli radio wifi off
|
||||
_notify 'Radio turned off'
|
||||
;;
|
||||
disabled)
|
||||
nmcli radio wifi on
|
||||
_notify 'Radio turned on'
|
||||
;;
|
||||
*)
|
||||
_notify 'No radio available'
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Loading…
Reference in a new issue