mirror of
https://github.com/dzaczek/Uconsole-i3.git
synced 2025-12-09 21:39:38 +00:00
new screenshoot some test about bluetooth
This commit is contained in:
parent
233b608d95
commit
9abfaa4e4b
4 changed files with 29 additions and 1 deletions
20
scripts/bluetooth
Normal file
20
scripts/bluetooth
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue