1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00
dotfiles/private_dot_config/polybar/bin/executable_switch-bluetooth

10 lines
354 B
Bash

#!/usr/bin/env sh
if [ "$(systemctl is-active bluetooth.service)" = "active" ]; then
doas systemctl stop bluetooth.service
notify-send.py -i bluetooth-disabled-symbolic --replaces-process bluetooth Bluetooth "Off"
else
doas systemctl start bluetooth.service
notify-send.py -i bluetooth-active-symbolic --replaces-process bluetooth Bluetooth "On"
fi