aboutsummaryrefslogtreecommitdiff
path: root/dmenu-audio
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2025-06-09 18:07:30 +0200
committerPhilip Wittamore <philip@wittamore.com>2025-06-09 18:07:30 +0200
commiteae78d6aca1028a614583a538f73eb6164fbfc9e (patch)
tree6e3a5b5123d0270d2189ce600aec40c45287ab20 /dmenu-audio
parentc47c8720b345ecbfd35db66c84437a51a0902245 (diff)
downloadscripts-eae78d6aca1028a614583a538f73eb6164fbfc9e.tar.gz
scripts-eae78d6aca1028a614583a538f73eb6164fbfc9e.tar.bz2
scripts-eae78d6aca1028a614583a538f73eb6164fbfc9e.zip
update
Diffstat (limited to 'dmenu-audio')
-rwxr-xr-xdmenu-audio17
1 files changed, 11 insertions, 6 deletions
diff --git a/dmenu-audio b/dmenu-audio
index 7600422..85bed40 100755
--- a/dmenu-audio
+++ b/dmenu-audio
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
-choices="󰂯 Connect BT headset\n󰂲 Disconnect BT headset\n Select Output\n Select Input\n󰝚 Play Music\n󰐎 Pause/Play Music\nExit"
+choices=" Connect BT headset\n󰂲 Disconnect BT headset\n󰓃 Select Output\n󰍬 Select Input\n󰝚 Playlists\n󰐎 Pause/Play Music\n Radio\n✘ Exit"
-result=$(echo -e $choices | dmenu -bw 4 -c -i -l 7 -p "Audio")
+result=$(echo -e $choices | dmenu -bw 4 -c -i -l 8 -p "Audio")
case $result in
- "󰂯 Connect BT headset")
+ " Connect BT headset")
headset="E8:07:BF:3C:5F:65"
bluetoothctl connect $headset &> /dev/null
;;
@@ -16,7 +16,7 @@ case $result in
bluetoothctl disconnect $headset &> /dev/null
;;
- " Select Input")
+ "󰍬 Select Input")
choices=$(pactl list short sources | cut -f2)
choices="$choices Exit"
@@ -29,7 +29,7 @@ case $result in
;;
- " Select Output")
+ "󰓃 Select Output")
choices=$(pactl list short sinks | cut -f2)
choices="$choices Exit"
@@ -42,7 +42,7 @@ case $result in
exit 0
;;
- "󰝚 Play Music")
+ "󰝚 Playlists")
dmenu-playmusic
exit 0
;;
@@ -51,6 +51,11 @@ case $result in
playerctl play-pause
exit 0
;;
+
+ " Radio")
+ st -e pyradio
+ exit 0
+ ;;
*)
exit 0