jordansissel / xdotool

fake keyboard/mouse input, window management, and more
Other
3.27k stars 321 forks source link

set_desktop --relative does not work for -1 #452

Closed Jatinchhabra21 closed 7 months ago

Jatinchhabra21 commented 8 months ago

Hi, I'm trying to use set_desktop for switching workspaces using libinput-gestures and for some reason it is not working when I'm assigning swipe_left event with xdotool set_desktop --relative -1, does negative integers not work with relative flag? or I'm doing something wrong. Also, xdotool set_desktop --relative 1 cycles through all workspaces if run enough times.

ignore the comments image

phil294 commented 7 months ago

-1 is probably parsed as an option, try -- -1 instead :-)

Jatinchhabra21 commented 7 months ago

Should've googled first. Thanks for answering!