script to toggle wifi on/off

This commit is contained in:
TUNQRT 2026-04-18 17:17:43 +02:00
parent be6eb1615d
commit 088a48bc2e
1 changed files with 5 additions and 0 deletions

5
wifi Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
h=$(nmcli radio wifi)
[ $h == "enabled" ] && nmcli radio wifi off || nmcli radio wifi on