Skip to content

Commit

Permalink
Change some things
Browse files Browse the repository at this point in the history
Change-type: major
  • Loading branch information
AlexProgrammerDE authored Feb 12, 2020
1 parent 9088f88 commit 1647bdb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bluetooth/bluetooth-control
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ while : ; do
if [[ ! -z "$(echo "$(amixer -D bluealsa scontrols)" | sed -n " s,[^']*'\([^']*\).*,\1,p ")" ]]; then

DEVICE="$(echo "$(amixer -D bluealsa scontrols)" | sed -n " s,[^']*'\([^']*\).*,\1,p ")"
MAC=$(cat /var/cache/bluetooth/reconnect_device)
MAC="$(cat /var/cache/bluetooth/reconnect_device)"
MAC_PARSED="$(echo ${MAC//:/_})"

# Volume up
Expand All @@ -41,7 +41,6 @@ if [[ "$(cat /sys/class/gpio/gpio17/value)" == 1 ]]; then
fi

# Here comes later the code for bluetooth

dbus-send --system --dest=org.bluez --print-reply /org/bluez/hci0/dev_$MAC_PARSED org.bluez.MediaControl1.Play > /dev/null

# Volume down
Expand Down

0 comments on commit 1647bdb

Please sign in to comment.