Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
use of xbindkeys to issue keyboard shortcuts
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Nitro_146
Apprentice
Apprentice


Joined: 02 Mar 2005
Posts: 221
Location: Digne les bains, France

PostPosted: Tue May 14, 2013 7:29 pm    Post subject: use of xbindkeys to issue keyboard shortcuts Reply with quote

hi all,

I would like to assign some unused key from my keyboard to run keyboard shortcuts such as CTRL+W to close tabs in firefox.

so far, I have found at least 2 commands for doing this :
Code:
/usr/bin/xvkbd -xsendevent -text '\Cw'

Code:
/usr/bin/xdotool key ctrl+w


Both work when launched from shell

None work with xbindkeys

My .xbindkeysrc (only relevant parts)
Code:
# Calculatrice
"gcalctool"
m:0x10 + c:132

# Fermeture onglet   
"/usr/bin/xdotool key ctrl+w"    # or "/usr/bin/xvkbd -xsendevent -text '\Cw'"
m:0x10 + c:101


Note that the gcalctool shortcut works; and swapping keys c:132 and c:101 does not solve the problem.

Just in case that could be important, my keyboard is a Typematrix 2030 USB
_________________
Linux, cause booting is for adding new hardware
Back to top
View user's profile Send private message
Nitro_146
Apprentice
Apprentice


Joined: 02 Mar 2005
Posts: 221
Location: Digne les bains, France

PostPosted: Fri May 17, 2013 9:17 pm    Post subject: Reply with quote

up ! :)
_________________
Linux, cause booting is for adding new hardware
Back to top
View user's profile Send private message
CaptainHero
n00b
n00b


Joined: 27 Nov 2009
Posts: 50
Location: Germany

PostPosted: Thu May 23, 2013 1:47 am    Post subject: Reply with quote

Installing x11-apps/xev might help you troubleshooting.
Back to top
View user's profile Send private message
Nitro_146
Apprentice
Apprentice


Joined: 02 Mar 2005
Posts: 221
Location: Digne les bains, France

PostPosted: Fri May 24, 2013 9:09 pm    Post subject: Reply with quote

Thank for your answer.

I already have xev installed. I used it to find out the keycodes.
_________________
Linux, cause booting is for adding new hardware
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum