💥 fix(swaync): bluetooth toggle not working, no fit screen size, move notifications up
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
Update_state() {
|
||||
if [[ $(nmcli n c) =~ "partial" ]] || [[ $(nmcli n c) =~ "full" ]]
|
||||
then
|
||||
echo true
|
||||
else
|
||||
echo false
|
||||
fi
|
||||
}
|
||||
|
||||
Toggle_state() {
|
||||
if [[ $SWAYNC_TOGGLE_STATE == true ]]
|
||||
then
|
||||
nmcli n on
|
||||
else
|
||||
nmcli n off
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user