No Windows key!! (re. Tiling window managers)

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
ahmad
Posts: 4
Joined: Fri Jul 09, 2010 10:17 am
Location: Leicester, UK

No Windows key!! (re. Tiling window managers)

#1 Post by ahmad » Sun Jul 11, 2010 5:17 am

So, my new X32 does not have a windows key. This does not bode well for my use of wmii as a window manager.

Is there any way I can map the 'fn' button using Xmodmap? I've tried a couple of things but it seems the OS does not 'see' the Fn key. Is there any other key that anyone here would suggest mapping? At the moment I have wmii set to use Mod1 (Alt key) but that conflicts with some of my applications...

Neil
Senior ThinkPadder
Senior ThinkPadder
Posts: 2914
Joined: Sun Aug 07, 2005 5:41 pm
Location: Paragould AR USA

Re: No Windows key!! (re. Tiling window managers)

#2 Post by Neil » Sun Jul 11, 2010 8:03 am

Currently, I have my caps lock key mapped to function as the "super" key in Crunchbang. I've had it set up that way for a few months now, and have not yet missed having it's original function.
Collection = T500 - R400 - X300 - X200 - T61 (14" WXGA+) - T61 (14.1" SXGA+) - T60 (15" SXGA+) - X40 - T43p - T43 - T42p - A30P - 600E

Harryc
Moderator Emeritus
Moderator Emeritus
Posts: 13228
Joined: Thu Apr 12, 2007 8:23 am
Location: Upstate New York

Re: No Windows key!! (re. Tiling window managers)

#3 Post by Harryc » Sun Jul 11, 2010 8:50 am

I don't know what Crunchbang is, but given the frequency with which I hit the Caps Lock key by accident, I think I'd be 'crunchbanging' all day :).

dk
Posts: 39
Joined: Tue Sep 30, 2008 8:49 pm
Location: Edmonton, CA

Re: No Windows key!! (re. Tiling window managers)

#4 Post by dk » Sun Jul 11, 2010 7:13 pm

Hello.

Here are the relevant keycodes as determined using `xev'. The 'fn' key generates the following:

Code: Select all

KeyPress event, serial 34, synthetic NO, window 0x2a00001,
    root 0x11a, subw 0x0, time 650662, (172,-14), root:(803,366),
    state 0x0, keycode 151 (keysym 0x1008ff2b, XF86WakeUp), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2a00001,
    root 0x11a, subw 0x0, time 650674, (172,-14), root:(803,366),
    state 0x0, keycode 151 (keysym 0x1008ff2b, XF86WakeUp), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
The 'Windows' key generates the following:

Code: Select all

KeyPress event, serial 34, synthetic NO, window 0x2a00001,
    root 0x11a, subw 0x0, time 631176, (169,-9), root:(800,371),
    state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2a00001,
    root 0x11a, subw 0x0, time 631271, (169,-9), root:(800,371),
    state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
So, you should be able to remap it using those keycode's easily. If you are not sure if your 'fn' is working, try `xev' and see if it is generating an event.

PizzaandWine
Posts: 32
Joined: Sun Dec 06, 2009 6:21 pm
Location: Minneapolis, MN

Re: No Windows key!! (re. Tiling window managers)

#5 Post by PizzaandWine » Mon Jul 26, 2010 10:17 pm

I too run crunchbang, but on an x31 and love it. With almost anything that runs X (i.e. any graphical linux distro), you can create use a xmodmap config to get map the key over. On some it will automatically be detected if you name it .Xmodmap and put it in your home folder. However, just for good measure I put it in a script that runs right after login--something like

Code: Select all

(sleep 2s && xmodmap ~/.Xmodmap) &
.

The code I use to convert the caps_lock key to the windows key is:

Code: Select all

! No Caps Lock
clear lock
! Caps Lock as Win Key
add mod4 = Caps_Lock
! No Caps Lock
clear lock
! Caps Lock as Win Key
add mod4 = Caps_Lock
Good luck.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 2 guests