Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-04-29 13:43:34

visu
Member
Registered: 2018-04-29
Posts: 2

XFCE keyboard shortcuts

I'm trying to emulate windows mousekeys with xfce keyboard shortcuts and xdotool. So I've bound Numpad 5 to this: xdotool click 1; xdotool click 3. But it only either clicks, or rightclicks, depending on what I have first. If I write that into a command line it works flawlessly.

Offline

#2 2018-04-29 17:36:19

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,660

Re: XFCE keyboard shortcuts

Hello and welcome.

The built-in interpreter is a very basic one. The semi-colon is tripping it up. Embed the commands in a bash string like:

bash -c "xdotool click 1; xdotool click 3"

This executes bash and passes bash the string to execute.

Offline

#3 2018-04-29 20:56:39

visu
Member
Registered: 2018-04-29
Posts: 2

Re: XFCE keyboard shortcuts

ToZ wrote:

Hello and welcome.

The built-in interpreter is a very basic one. The semi-colon is tripping it up. Embed the commands in a bash string like:

bash -c "xdotool click 1; xdotool click 3"

This executes bash and passes bash the string to execute.

oh I see, I did a simple fix by making it into a sh script and then executing that, but thanks that'll work flawlessly aswell

Offline

Board footer

Powered by FluxBB