Re: Additional keys on laptop

"Rainer M Krug" <[email protected]>
Newsgroups gmane.comp.window-managers.fluxbox.user
Message-ID <[email protected]>
On Thu, Apr 24, 2008 at 1:07 PM, C. Ahlstrom <[email protected]> wrote:
> ++++++++ Rainer M Krug 09:43 Thu 24 Apr      ++++++++
>
>
> >
> > IO have a HP nx8220 laptop and I would like to be able to use the
> > additional keys above the keyboard as well ("presenatation", volume,
> > mute). Under enlightment, I can assign commands to them, but how can I
> > do that under fluxbox? I guess I have to specify it in the "keys" fil,
> > but what are the codes for the keys and how can I find them out?
> >
>
>  Run "xev".

Thanks a lot - found it

Rainer


>
>
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>  ! File   : $HOME/.fluxbox/keys
>  ! About  : fluxbox key bindings
>  ! Author : Chris Ahlstrim, mathias gumz <akira at fluxbox dot org>
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>  !
>  !  o  Syntax of the fluxbox-keys-file:
>  !
>  !        <mod> [<mod> <mod>] key [key key] :command <commanoptions>
>  !
>  !     Use 'xmodmap -pm' to see what mods are available. !     No "modifier"
> is 'None'.
>  !
>  !  o  You can find a valid syntaxfile for vim here:
>  !
>  !        http://www.vim.org/scripts/script.php?script_id=882
>  !        http://darkshed.net/files/vim/syntax/fluxkeys.vim
>  !
>  !  o  Key combos:  (Mod1=Alt, Mod4=Windows key, Menu=Menu key)
>  !
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>  ! mouse actions added by fluxbox-update_configs
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
>  OnDesktop Mouse1 :hideMenus
>  OnDesktop Mouse2 :workspaceMenu
>  OnDesktop Mouse3 :rootMenu
>  OnDesktop Mouse4 :nextWorkspace
>  OnDesktop Mouse5 :prevWorkspace
>  OnToolbar Mouse4 :nextWorkspace
>  OnToolbar Mouse5 :prevWorkspace
>
>  ! here's a handy command to use the side mouse
>  ! buttons for lowering and raising the sound card volume:
>  ! (rexima is a command line mixer similar to alsamixer)
>  ! ! None Mouse8 :ExecCommand rexima pcm -5
>  ! None Mouse9 :ExecCommand rexima pcm +3
>
>
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>  !  menus
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
>  None Menu                  :RootMenu
>  Control Menu               :WorkspaceMenu
>  Control Mod1 Mod4 Menu     :Restart
>
>  ! Shift Menu Delete          :Reconfigure
>
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>  !  window - handling
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
>  ! Moves focus to a different window
>  ! (Doesn't seem to work, let's use them for movement.)
>  !
>  ! Mod4 Right                 :MoveRight
>  ! Mod4 Left                  :MoveLeft
>  ! Mod4 Up                    :MoveUp
>  ! Mod4 Down                  :MoveDown
>
>  Mod4 Menu                  :WindowMenu
>
>  ! Moves window to the given Xinerama screen
>
>  Control Mod4 1             :SetHead 1
>  Control Mod4 2             :SetHead 2
>
>  Mod1 Tab                   :NextWindow 1
>  Shift Mod1 Tab             :PrevWindow 1
>
>  Mod4 p                     :CycleDecor
>  Mod4 d                     :ToggleDecor
>  Mod4 h                     :Shade
>  Mod4 s                     :Stick
>  Mod4 i                     :Iconify
>  Mod4 m                     :Maximize
>  Mod4 v                     :MaximizeVertical
>  Mod4 w                     :MaximizeHorizontal
>
>  Control Mod1 Mod4 x        :Close
>  Control Mod1 Mod4 s        :Showdesktop
>
>  Shift Mod4 q               :Deiconify LastWorkspace
>  Control Shift Mod4 q       :Deiconify Last OriginQuiet
>  Control Shift Mod1 Mod4 q  :Deiconify All OriginQuiet
>
>  Mod1 Up                    :RaiseLayer
>  Mod1 Down                  :LowerLayer
>
>  ! 1 - cycle groups
>  ! 2 - skip stuck
>  ! 4 - skip shaded
>  ! 8 - cycle linear
>  ! 0 - cycle default
>
>  ! Shift Mod1 Mod4 Up        :FocusUp
>  ! Shift Mod1 Mod4 Down      :FocusDown
>  ! Shift Mod1 Mod4 Left      :FocusLeft
>  ! Shift Mod1 Mod4 Right     :FocusRight
>
>  ! Mod1 Return               :MaximizeWindow
>  ! Control Mod4 f            :Fullscreen
>
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>  ! resize / movement of window
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
>  Mod4 Right                 :Move  10   0
>  Mod4 Left                  :Move -10   0
>  Mod4 Up                    :Move   0 -10
>  Mod4 Down                  :Move   0  10
>
>  Mod4 KP_Home               :Move -10 -10
>  Mod4 KP_Up                 :Move   0 -10
>  Mod4 KP_Prior              :Move  10 -10
>  Mod4 KP_Left               :Move -10   0
>  Mod4 KP_Right              :Move  10   0
>  Mod4 KP_End                :Move -10  10
>  Mod4 KP_Down               :Move   0  10
>  Mod4 KP_Next               :Move   10 10
>
>  ! Already used above to take window to another workspace
>  !
>  ! Control Mod4 Right         :Move  50   0
>  ! Control Mod4 Left          :Move -50   0
>  ! Control Mod4 Up            :Move   0 -50
>  ! Control Mod4 Down          :Move   0  50
>
>  Control Mod4 KP_Home       :Move -50 -50
>  Control Mod4 KP_Up         :Move   0 -50
>  Control Mod4 KP_Prior      :Move  50 -50
>  Control Mod4 KP_Left       :Move -50   0
>  Control Mod4 KP_Right      :Move  50   0
>  Control Mod4 KP_End        :Move -50 -50
>  Control Mod4 KP_Down       :Move   0  50
>  Control Mod4 KP_Next       :Move   50 50
>
>  ! Let's find another use for these.
>  !
>  ! Shift Mod1 Left            :Resize -1    0
>  ! Shift Mod1 Right           :Resize  1    0
>  ! Shift Mod1 Up              :Resize  0   -1
>  ! Shift Mod1 Down            :Resize  0    1
>
>  Mod1 Mod4 Left             :Resize -1    0
>  Mod1 Mod4 Right            :Resize  1    0
>  Mod1 Mod4 Up               :Resize  0   -1
>  Mod1 Mod4 Down             :Resize  0    1
>
>  Mod1 Mod4 KP_Home          :Resize -1   -1
>  Mod1 Mod4 KP_Up            :Resize  0   -1
>  Mod1 Mod4 KP_Prior         :Resize  1   -1
>  Mod1 Mod4 KP_Left          :Resize -1    0
>  Mod1 Mod4 KP_Right         :Resize  1    0
>  Mod1 Mod4 KP_End           :Resize -1    1
>  Mod1 Mod4 KP_Down          :Resize  0    1
>  Mod1 Mod4 KP_Next          :Resize  1    1
>
>  Shift Mod4 Left            :MoveTo 0 * Left
>  Shift Mod4 Right           :MoveTo 0 * Right
>  Shift Mod4 Up              :MoveTo * 0 Upper
>  Shift Mod4 Down            :MoveTo * 0 Lower
>  Shift Mod4 KP_Home         :MoveTo 0 0 UpperLeft
>  Shift Mod4 KP_Up           :MoveTo * 0 Upper
>  Shift Mod4 KP_Prior        :MoveTo 0 0 UpperRight
>  Shift Mod4 KP_Left         :MoveTo 0 * Left
>  Shift Mod4 KP_Begin        :MoveTo 0 * Right
>  Shift Mod4 KP_Right        :MoveTo 0 * Right
>  Shift Mod4 KP_End          :MoveTo 0 0 LowerLeft
>  Shift Mod4 KP_Down         :MoveTo * 0 Lower
>  Shift Mod4 KP_Next         :MoveTo 0 0 LowerRight
>
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>  !  workspace - handling
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
>  Control Mod4 Right         :TakeToNextWorkspace 1
>  Control Mod4 Left          :TakeToPrevWorkspace 1
>  Control Mod4 Up            :TakeToNextWorkspace 1
>  Control Mod4 Down          :TakeToPrevWorkspace 1
>
>  ! Cannot work
>  !
>  ! Mod4 1                     :TakeToWorkSpace 1
>  ! Mod4 2                     :TakeToWorkSpace 2
>  ! Mod4 3                     :TakeToWorkSpace 3
>  ! Mod4 4                     :TakeToWorkSpace 4
>
>  ! Already used
>  !
>  ! Shift Mod4 Right           :SendToNextWorkspace 1
>  ! Shift Mod4 Left            :SendToPrevWorkspace 1
>
>  Control Mod1 Right         :NextWorkspace Control Mod1 Left
> :PrevWorkspace
>  Control Mod1 KP_End        :Workspace 1
>  Control Mod1 KP_Down       :Workspace 2
>  Control Mod1 KP_Next       :Workspace 3
>  Control Mod1 KP_Left       :Workspace 4
>  Control Mod1 KP_Begin      :Workspace 5
>  Control Mod1 KP_Right      :Workspace 6
>  Control Mod1 KP_Home       :Workspace 7
>  Control Mod1 KP_Up         :Workspace 8
>
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>  ! execute commands
>  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
>  ! Sound stuff, basicly control the volume via amixer (alsa)
>  ! ! Control Shift m             :ExecCommand aumix -w m
>  ! Control Shift u             :ExecCommand aumix -w 50
>
>  Control Mod4 z    :ExecCommand audacious --rew > /dev/null
>  Control Mod4 x    :ExecCommand audacious --play > /dev/null
>  Control Mod4 c    :ExecCommand audacious --pause > /dev/null
>  Control Mod4 v    :ExecCommand audacious --stop > /dev/null
>  Control Mod4 b    :ExecCommand audacious --fwd > /dev/null
>
>  Control Mod4 m    :ExecCommand amixer -- sset Master toggle > /dev/null
>  Control Mod4 n    :ExecCommand amixer -- sset Master toggle > /dev/null
>
>  ! attention: the next command is just to show that syntax-hl in vim works
>  !
>  ! Control Mod1 Mod4 x :MacroCmd {Exec xterm} {Move 10} {Exec bla} {Move 10
> 10}
>
>  --
>  Don't expect people to keep in step--it's hard enough just staying in line.
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
South Africa

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.