new screenshoot some test about bluetooth

This commit is contained in:
dzaczek 2023-10-17 06:53:18 +02:00
parent 233b608d95
commit 9abfaa4e4b
4 changed files with 29 additions and 1 deletions

20
scripts/bluetooth Normal file
View file

@ -0,0 +1,20 @@
#!/bin/bash
# Left click
if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then
sudo bluetooth on
# Middle click
elif [[ "${BLOCK_BUTTON}" -eq 2 ]]; then
sudo bluetooth toggle
# Right click
elif [[ "${BLOCK_BUTTON}" -eq 3 ]]; then
sudo bluetooth off
fi
STATUS=$(bluetooth | grep -wo 'on')
if [[ "${STATUS}" = "on" ]]; then
echo "on"
echo "on"
echo ""
fi