fix freeze eww

This commit is contained in:
2026-09-11 22:40:11 +02:00
parent 98ac3a8844
commit c8251c6f6d
12 changed files with 76 additions and 26 deletions
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
# Connect or disconnect the bluetooth device with MAC $1.
mac=$1
[[ -n $mac ]] || exit 64
detach_self "$@"
if bluetoothctl info "$mac" 2>/dev/null | grep -q "Connected: yes"; then
bluetoothctl disconnect "$mac"
else
@@ -4,6 +4,7 @@
# Needs the polkit rule from modules/nixos/system/network/wireguard.
name=$1
[[ -n $name ]] || exit 64
detach_self "$@"
if [[ -d /sys/class/net/$name ]]; then
systemctl stop "wireguard-$name.service"
else