mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Adding bluetooth scripts
This commit is contained in:
parent
a2a15d07af
commit
981db0af3c
13
.local/bin/polybar_scripts/bluetooth
Executable file
13
.local/bin/polybar_scripts/bluetooth
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
|
||||
then
|
||||
echo "%{F#66ffffff}"
|
||||
else
|
||||
if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ]
|
||||
then
|
||||
echo ""
|
||||
fi
|
||||
echo "%{F#2193ff}"
|
||||
fi
|
||||
|
||||
8
.local/bin/polybar_scripts/toggle_bluetooth
Executable file
8
.local/bin/polybar_scripts/toggle_bluetooth
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
|
||||
then
|
||||
bluetoothctl power on
|
||||
else
|
||||
bluetoothctl power off
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user