1
0
mirror of https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git synced 2025-09-15 09:45:58 +03:00

switched from networkmanager to iwd

This commit is contained in:
xnm
2024-10-20 23:32:04 +03:00
parent 114baed3cd
commit 6d5c55aeaa
5 changed files with 53 additions and 19 deletions

View File

@@ -1,11 +1,11 @@
function wifi_toggle
set wifi_status (nmcli radio wifi)
set wifi_status (rfkill list wifi | grep -i -o "Soft blocked: yes")
set backup_file ~/.cache/airplane_backup
if [ "$wifi_status" = enabled ]
nmcli radio wifi off
if [ -z "$wifi_status" ]
rfkill block wifi
else
nmcli radio wifi on
rfkill unblock wifi
if test -e $backup_file
rm $backup_file
end