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

airplane-mode bugfix

This commit is contained in:
xnm
2024-04-06 01:26:01 +03:00
parent 9385ffd1ff
commit e94f33f4b0
2 changed files with 11 additions and 3 deletions

View File

@@ -1,9 +1,13 @@
function bluetooth_toggle
set bluetooth_status (rfkill list bluetooth | grep -i -o "Soft blocked: yes")
set backup_file ~/.cache/airplane_backup
if [ -z "$bluetooth_status" ]
rfkill block bluetooth
else
rfkill unblock bluetooth
if test -e $backup_file
rm $backup_file
end
end
end
end