Add blue
This commit is contained in:
parent
8b4173f078
commit
1f8acca322
2 changed files with 36 additions and 0 deletions
8
Makefile
8
Makefile
|
|
@ -4,13 +4,21 @@ install:
|
|||
install -Dm755 youtube-mp3 $(DESTDIR)$(PREFIX)/bin/youtube-mp3
|
||||
install -Dm755 nope $(DESTDIR)$(PREFIX)/bin/nope
|
||||
install -Dm755 m4a2wav $(DESTDIR)$(PREFIX)/bin/m4a2wav
|
||||
install -Dm755 src $(DESTDIR)$(PREFIX)/bin/src
|
||||
install -Dm755 blue $(DESTDIR)$(PREFIX)/bin/blue
|
||||
|
||||
uninstall:
|
||||
$(RM) $(DESTDIR)$(PREFIX)/bin/youtube-mp3
|
||||
$(RM) $(DESTDIR)$(PREFIX)/bin/nope
|
||||
$(RM) $(DESTDIR)$(PREFIX)/bin/m4a2wav
|
||||
$(RM) $(DESTDIR)$(PREFIX)/bin/src
|
||||
$(RM) $(DESTDIR)$(PREFIX)/bin/blue
|
||||
|
||||
shellcheck:
|
||||
shellcheck youtube-mp3
|
||||
shellcheck nope
|
||||
shellcheck m4a2wav
|
||||
shellcheck src
|
||||
shellcheck blue
|
||||
|
||||
.PHONY: install uninstall shellcheck
|
||||
|
|
|
|||
28
blue
Executable file
28
blue
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/sh
|
||||
|
||||
RECENT=$(fish -c "history | grep -v 'grep' | grep 'bluetoothctl connect' | awk '{print \$3;}'")
|
||||
|
||||
OPTION=$(echo "$RECENT" | cat <<EOF | dmenu)
|
||||
On
|
||||
Off
|
||||
Disconnect
|
||||
$RECENT
|
||||
EOF
|
||||
|
||||
case "$OPTION" in
|
||||
On)
|
||||
bluetoothctl power on
|
||||
;;
|
||||
Off)
|
||||
bluetoothctl power off
|
||||
;;
|
||||
Disconnect)
|
||||
bluetoothctl disconnect
|
||||
;;
|
||||
"")
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
bluetoothctl connect "$OPTION"
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue