0

I'd like to pause the vlc player by sending the space key to its main window.

What I tried is :

xdotool search --class vlc key space

And

xdotool search --classname vlc key space

That didn't work. What worked is :

xdotool search --class vlc | while read window; do xdotool key --window $window "space"; done;

Obviously that solution isn't taking advantage of xdotool command chaining. Would love to get feedback on that.

Some more info

ychaouche#ychaouche-PC 15:08:03 /usr/share/man $ xdotool search  --class "Vlc"   | nl
     1  65011874
     2  65011964
     3  65011994
     4  65011729
     5  65011747
     6  65011738
ychaouche#ychaouche-PC 15:08:45 /usr/share/man $ xdotool search  --classname "Vlc"   | nl
     1  65011874
     2  65011964
     3  65011994
     4  65011729
     5  65011747
     6  65011738
ychaouche#ychaouche-PC 15:08:49 /usr/share/man $
ychaouche
  • 998

0 Answers0