LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2012, 07:50 AM   #1
BrutalMusic
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 14.1 64-bit
Posts: 28

Rep: Reputation: 1
Fluxbox 'keys' file: Mod4/Super_L/Windows key doesn't work


I have a full, nearly fresh install of Slackware 13.37 on a Toshiba Satellite A215-S7437 laptop.

I copied 'keys' from the .fluxbox directory an install of Slackware 13.1 on a different computer.

Most of the commands in the 'keys' file do work on the Toshiba. Trouble is, fluxbox's 'keys' file doesn't respond to the Windows key.

Here's the output of xev:

Code:
KeyPress event, serial 34, synthetic NO, window 0x1e00001,
    root 0x14e, subw 0x0, time 10791656, (168,-16), root:(658,30),
    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 0x1e00001,
    root 0x14e, subw 0x0, time 10791856, (168,-16), root:(658,30),
    state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
Here's my keys file:

Code:
# click on the desktop to get menus
OnDesktop Mouse1 :HideMenus
OnDesktop Mouse2 :WorkspaceMenu
OnDesktop Mouse3 :RootMenu

# scroll on the desktop to change workspaces
OnDesktop Mouse4 :PrevWorkspace
OnDesktop Mouse5 :NextWorkspace

# scroll on the toolbar to change workspaces
OnToolbar Mouse4 :PrevWorkspace
OnToolbar Mouse5 :NextWorkspace

# alt + left/right click to move/resize a window
OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner}

# middle click a window's titlebar and drag to attach windows
OnTitlebar Mouse2 :StartTabbing

# double click on the titlebar to maximize
OnTitlebar Double Mouse1 :Maximize

# right click on the titlebar for a menu of options
OnTitlebar Mouse3 :WindowMenu

# alt-tab
Mod1 Tab :NextWindow {groups}
Mod1 Shift Tab :PrevWindow {groups}

# cycle through tabs in the current window
Mod4 Tab :NextTab
Mod4 Shift Tab :PrevTab

# go to a specific tab in the current window
Mod4 1 :Tab 1
Mod4 2 :Tab 2
Mod4 3 :Tab 3
Mod4 4 :Tab 4
Mod4 5 :Tab 5
Mod4 6 :Tab 6
Mod4 7 :Tab 7
Mod4 8 :Tab 8
Mod4 9 :Tab 9


# open programs

Mod4 f :Exec firefox -geometry 1440x895+0+0
Mod4 g :Exec gimp
Mod4 l :Exec lyx
Mod4 r :Exec fbrun -font ro.fnt.gz
Mod4 t :Exec xterm
Mod4 v :Exec gvim -geometry 116x40+0+0
Mod4 o :Exec libreoffice


# volume settings, using common keycodes
# if these don't work, use xev to find out your real keycodes
176 :Exec amixer sset Master,0 1+
174 :Exec amixer sset Master,0 1-
160 :Exec amixer sset Master,0 toggle

# current window commands
Mod1 F4 :Close
Mod1 F9 :Minimize
Mod1 F10 :Maximize
Mod1 F11 :Fullscreen

# open the window menu
Mod1 space :WindowMenu

# exit fluxbox
Control Mod1 Delete :Exit

# change to a specific workspace
Control F1 :Workspace 1
Control F2 :Workspace 2
Control F3 :Workspace 3
Control F4 :Workspace 4
Control F5 :Workspace 5
Control F6 :Workspace 6
Control F7 :Workspace 7
Control F8 :Workspace 8
Control F9 :Workspace 9
Control F10 :Workspace 10
Control F11 :Workspace 11
Control F12 :Workspace 12

# send the current window to a specific workspace
Mod4 F1 :SendToWorkspace 1
Mod4 F2 :SendToWorkspace 2
Mod4 F3 :SendToWorkspace 3
Mod4 F4 :SendToWorkspace 4
Mod4 F5 :SendToWorkspace 5
Mod4 F6 :SendToWorkspace 6
Mod4 F7 :SendToWorkspace 7
Mod4 F8 :SendToWorkspace 8
Mod4 F9 :SendToWorkspace 9
Mod4 F10 :SendToWorkspace 10
Mod4 F11 :SendToWorkspace 11
Mod4 F12 :SendToWorkspace 12

# send the current window and change to a specific workspace
Control Mod4 F1 :TakeToWorkspace 1
Control Mod4 F2 :TakeToWorkspace 2
Control Mod4 F3 :TakeToWorkspace 3
Control Mod4 F4 :TakeToWorkspace 4
Control Mod4 F5 :TakeToWorkspace 5
Control Mod4 F6 :TakeToWorkspace 6
Control Mod4 F7 :TakeToWorkspace 7
Control Mod4 F8 :TakeToWorkspace 8
Control Mod4 F9 :TakeToWorkspace 9
Control Mod4 F10 :TakeToWorkspace 10
Control Mod4 F11 :TakeToWorkspace 11
Control Mod4 F12 :TakeToWorkspace 12
Probably irrelevant, but here's .xinitrc:

Code:
#!/bin/bash
exec /usr/bin/fluxbox & wmpid=$!

exec /usr/bin/wicd-client &
exec /usr/bin/xscreensaver -no-splash&
exec /usr/bin/firefox &
exec /usr/bin/xfce4-power-manager &

wait $wmpid
Thanks!!!

Last edited by BrutalMusic; 09-10-2012 at 07:56 AM.
 
Old 09-10-2012, 09:31 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,482
Blog Entries: 16

Rep: Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206
Whoops, I didn't read your post closely enough.

Try using "Super_L" instead of Mod4. I can't test this because my boxes all send "Mod4."

Last edited by frankbell; 09-10-2012 at 09:40 PM.
 
1 members found this post helpful.
Old 09-11-2012, 01:18 AM   #3
BrutalMusic
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 14.1 64-bit
Posts: 28

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by frankbell View Post
Try using "Super_L" instead of Mod4. I can't test this because my boxes all send "Mod4."
Thanks, I tried that yesterday but it didn't work.

I just stumbled upon something, though. I have my keyboard set on the Dvorak layout. I found that, using the laptop keyboard, I could use windows-p to trigger the Mod4-r event. 'p' on the Dvorak layout is in the same place as 'r' on QWERTY.

I didn't have this problem in Slackware 13.1. But the keyboard layout in X is changed through a different configuration file in 13.37 than it was in 13.1, so that may account for the different behavior between versions.

Now, using the laptop's keyboard, sometimes the windows key responds with the Dvorak layout, sometimes not. But with the USB keyboard it seems to reliably work as it should. So, I'm marking this solved for now.

Thanks!
 
Old 09-14-2012, 08:38 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,482
Blog Entries: 16

Rep: Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206
Thanks for following up.

This may well help someone else using that keyboard layout.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fluxbox key bindings only work sometimes mp55 Fedora 2 06-28-2007 12:39 PM
KDE Intercepts the Super_L Key Tim Johnson Linux - General 7 08-22-2005 11:12 AM
Fluxbox - use Mod4 instead of Mod1? wapcaplet Linux - Software 2 10-21-2004 11:17 AM
fluxbox key bindings without meta keys brassfish Linux - General 2 05-04-2004 12:32 AM
Mod4 fluxbox chrismiceli Linux - General 1 10-04-2003 09:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration