The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Using CapsLock as a $mod modifier issue

asked 2012-10-21 22:28:15 +0000

Licaon_Kter gravatar image

updated 2012-10-22 00:14:50 +0000

I have an issue regarding the use of CapsLock as a $mod modifier.

~/.i3/config: http://pastebin.com/q0nB4Vn0

~/.Xmodmap:

clear Lock
keycode 66 = Hyper_L
add mod4 = Hyper_L

xmodmap -pm:

xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock      
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3      
mod4        Hyper_L (0x42),  Super_L (0x85),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

And this works OK most of the time, unless I want to move a window ( like the only window in this workspace ) to a different workspace. It goes like this ( workspace 1 has only one window say Opera, workspace 2 empty/not existent ):

caps+2 - switch to workspace 2
caps+1 - switch to workspace 1
caps+shift+2 - nothing happens
win+shift+2 - window is moved to workspace 2
caps+2 - switch to workspace 2
caps+shift+1 - window is moved to workspace 1
caps+1 - switch to workspace 1
caps+shift+2 - nothing happens
win+shift+2 - window is moved to workspace 2
...

Basically Winkey always works, but CapsLock works only if the last move was done with Winkey. Workspace number or move order does not matter afaics.

Any idea?

edit retag flag offensive close merge delete

Comments

Please also provide the output of `xmodmap -pke`

Michael gravatar imageMichael ( 2012-10-22 07:17:23 +0000 )edit

**xmodmap -pke**: http://pastebin.com/7L2MZwvT (it's a Dvorak layout if it matters)

Licaon_Kter gravatar imageLicaon_Kter ( 2012-10-22 16:44:04 +0000 )edit

Should I file this as a i3 bug? or xmodmap? or what? can anyone else even reproduce this?

Licaon_Kter gravatar imageLicaon_Kter ( 2012-10-25 11:33:34 +0000 )edit

I also use caps lock as meta key and I'm faced with the same issue. My setup is ubuntu 11.04 and the http://debian.sur5r.net/i3/ repository.

i3-tiler gravatar imagei3-tiler ( 2012-10-29 14:32:52 +0000 )edit

I forgot to mention, I use the autobuilder provided version of i3 under Debian Sid 64bit.

Licaon_Kter gravatar imageLicaon_Kter ( 2012-10-29 21:50:32 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-08-22 11:56:01 +0000

notalex gravatar image

updated 2013-08-22 12:03:10 +0000

I had similar problems with Xmodmap and I ended up using setxkbmap. Try the following in your shell:

$ setxkbmap -option caps:hyper

The caps:hyper syntax comes from /usr/share/X11/xkb/rules/base.lst on my machine.

Note(For less advanced users): For a more permanent setting, place the command in your ~/.bashrc

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-10-21 22:28:15 +0000

Seen: 1,457 times

Last updated: Aug 22 '13