Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TIP: make CAPS_LOCK a meta modifier key
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
hothead
Apprentice
Apprentice


Joined: 02 Jul 2004
Posts: 277
Location: /dev/core

PostPosted: Tue Jul 24, 2007 7:35 am    Post subject: TIP: make CAPS_LOCK a meta modifier key Reply with quote

Hi,

I want to separate global from program specific shortcuts.
Global shortcuts should beginn with the modifier key sequence Alt+Ctrl+Shift.
But well, its annoying having to press four buttons.
So I converted the caps_lock key which original function only bugs me to a meta modifier key.

To let Caps_Lock emulate Alt+Ctrl+Shift add the the following to your ~/.Xmodmap

Code:
! ** remove Lock from Caps_Lock
remove lock = Caps_Lock
!
! ** make Caps_Lock emulate Ctrl+Alt+Shift
add Control = Caps_Lock
add Shift = Caps_Lock
add mod1 = Caps_Lock


to use the defined keymappings, one has to run
Code:
xmodmap ~/.Xmodmap

(either include it in your ~/.bashrc or run it from the kde or gnome autostart).

Have fun!
_________________
Got a question? - http://justfuckinggoogleit.com/


Last edited by hothead on Sun Aug 05, 2007 12:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
xalan
Apprentice
Apprentice


Joined: 01 Feb 2005
Posts: 190

PostPosted: Tue Jul 24, 2007 7:34 pm    Post subject: Reply with quote

Can you prefix "TIP:" to your post and mv this post to "Documentation tips & tricks" forum? thanks.
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Tue Jul 24, 2007 9:53 pm    Post subject: Reply with quote

Moved from Desktop Environments to Documentation, Tips & Tricks.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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