mirror of
https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git
synced 2025-09-15 09:45:58 +03:00
first commit
This commit is contained in:
9
home/.config/fish/functions/wifi_toggle.fish
Normal file
9
home/.config/fish/functions/wifi_toggle.fish
Normal file
@@ -0,0 +1,9 @@
|
||||
function wifi_toggle
|
||||
set wifi_status (nmcli radio wifi)
|
||||
|
||||
if [ "$wifi_status" = "enabled" ]
|
||||
nmcli radio wifi off
|
||||
else
|
||||
nmcli radio wifi on
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user