♻️ refactor(swaync): change a lot of stuff

This commit is contained in:
retrozinndev
2024-10-21 21:08:21 -03:00
parent d6a45631d0
commit 44c403b7bb
3 changed files with 144 additions and 118 deletions
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
Update_state() {
if [[ $(bluetoothctl show | grep "Powered" | sed "s/Powered: //" | xargs) == "yes" ]]
then
echo true
else
echo false
fi
}
Toggle_state() {
if [[ $SWAYNC_TOGGLE_STATE == "true" ]]
then
bluetoothctl power off
else
bluetoothctl power on
fi
}