1
0
mirror of https://github.com/balkian/dotfiles.git synced 2025-08-23 16:02:19 +00:00

Add rofi themes and bluetooth menu

+ Fixed dunst
This commit is contained in:
J. Fernando Sánchez
2020-12-28 16:21:25 +01:00
parent d1067cbb00
commit f395ed8f03
11 changed files with 207 additions and 11 deletions

19
scripts/.bin/btmenu Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
if command -v myrofi >/dev/null 2>&1;
then
program="myrofi -no-show-icons -dmenu"
else
program="dmenu"
fi
bluetoothctl power on
bluetoothctl agent on
bluetoothctl default-agent
# bluetoothctl scan on
list=$(bluetoothctl paired-devices);
device=$(echo -ne "$list" | cut -d' ' -f 3- | $program "$@" )
addr=$(echo "$list" | grep "$device" | cut -d' ' -f2)
bluetoothctl connect "$addr"