mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 04:20:03 +02:00
rofi-mediaplayer: switch to playerctl
As rofi grabs the keyboard while running in a script, we can't use xdotool.
This commit is contained in:
parent
16aa98a7fb
commit
40d8aece8d
1 changed files with 5 additions and 5 deletions
|
@ -50,11 +50,11 @@ EOF
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
case $ROFI_INFO in
|
case $ROFI_INFO in
|
||||||
1) xdotool key --clearmodifiers XF86AudioPrev ;;
|
1) playerctl -p $mediaplayer previous ;;
|
||||||
2) xdotool key --clearmodifiers XF86AudioPlay ;;
|
2) playerctl -p $mediaplayer play-pause ;;
|
||||||
3) xdotool key --clearmodifiers XF86AudioPause ;;
|
3) playerctl -p $mediaplayer pause ;;
|
||||||
4) xdotool key --clearmodifiers XF86AudioStop ;;
|
4) playerctl -p $mediaplayer stop ;;
|
||||||
5) xdotool key --clearmodifiers XF86AudioNext ;;
|
5) playerctl -p $mediaplayer next ;;
|
||||||
6) i3-msg '[class="Pavucontrol"] focus' || i3-msg exec exec pavucontrol ;;
|
6) i3-msg '[class="Pavucontrol"] focus' || i3-msg exec exec pavucontrol ;;
|
||||||
7) i3-msg '[class="'${Mediaplayer}'"] focus' || i3-msg exec exec spotify ;;
|
7) i3-msg '[class="'${Mediaplayer}'"] focus' || i3-msg exec exec spotify ;;
|
||||||
esac >&2
|
esac >&2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue