simple rofi script to choose player for playerctl to execute its command


copy and to ~/.config/i3/scripts/ or you can change the directory that you want inside the scripts

to run player switcher, do

python ~/.config/i3/scripts/

and to control player, do

~/.config/i3/scripts/ [playerctl command (playerctl -h)]

or you can also add it to your i3 config file

bindsym $mod+u exec python ~/.config/i3/scripts/

bindsym XF86AudioPlay exec ~/.config/i3/scripts/ play-pause
bindsym XF86AudioPause exec ~/.config/i3/scripts/ pause
bindsym XF86AudioNext exec ~/.config/i3/scripts/ next
bindsym XF86AudioPrev exec ~/.config/i3/scripts/ previous


View Github