-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrapper
More file actions
executable file
·38 lines (35 loc) · 803 Bytes
/
wrapper
File metadata and controls
executable file
·38 lines (35 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Define the options
options=("Artist" "Composer" "Track" "Next" "Playlist" "Jump" "Longplayer" "Genre")
# Prompt the user to select a mode using wofi
selected_mode=$(printf "%s\n" "${options[@]}" | wofi --dmenu --prompt "Select Mode:" --insensitive)
# Check the selected mode and call your script accordingly
case $selected_mode in
"Artist")
wmpc_control -a
;;
"Composer")
wmpc_control -c
;;
"Track")
wmpc_control -t
;;
"Next")
wmpc_control -n
;;
"Playlist")
wmpc_control -p
;;
"Jump")
wmpc_control -j
;;
"Longplayer")
wmpc_control -l
;;
"Genre")
wmpc_control -g
;;
*)
echo "Invalid mode selected."
;;
esac