Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

~/.fluxbox/keys galore!

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
pianosaurus
l33t
l33t
User avatar
Posts: 944
Joined: Mon Apr 19, 2004 9:45 pm
Location: Bash$

~/.fluxbox/keys galore!

  • Quote

Post by pianosaurus » Sat Apr 23, 2005 9:29 pm

I just made this, and I thought maybe others might find it useful. Of course, everybody has different needs, so go ahead and modify. I made the commands I use the most easely accessible.

~/.fluxbox/keys:

Code: Select all

## OC's fluxbox key bindings
## 
## The philosophy is that Mod4 (Tux/windows-button) is used for anything
## related to one window alone (usually the one with focus), the only
## exception being volume control, since games sometimes let Mod4 go through to
## the window manager.

################################################################################
## WM-Control:
################################################################################

# Window switching:
Mod1 Tab       :NextWindow                 # Switch to next window
Mod1 Shift Tab :PrevWindow                 # Switch to previous window

# Window moving:
Mod4 KP_Up    :Move 0 -5                   # Up
Mod4 KP_Down  :Move 0 5                    # Down
Mod4 KP_Left  :Move -5 0                   # Left
Mod4 KP_Right :Move 5 0                    # Right
Mod4 KP_Home  :Move -5 -5                  # Up/Left
Mod4 KP_Prior :Move 5 -5                   # Up/Right
Mod4 KP_End   :Move -5 5                   # Down/Left
Mod4 KP_Next  :Move 5 5                    # Down/Right
Mod4 F1       :SendToWorkspace 1           # To workspace 1
Mod4 F2       :SendToWorkspace 2           # To workspace 2
Mod4 F3       :SendToWorkspace 3           # To workspace 3

# Window resizing (move lower right corner):
Mod4 control KP_8 :Resize 0 -5             # Up
Mod4 control KP_2 :Resize 0 5              # Down
Mod4 control KP_4 :Resize -5 0             # Left
Mod4 control KP_6 :Resize 5 0              # Right
Mod4 control KP_7 :Resize -5 -5            # Up/Left
Mod4 control KP_9 :Resize 5 -5             # Up/Right
Mod4 control KP_1 :Resize -5 5             # Down/Left
Mod4 control KP_3 :Resize 5 5              # Down/Right

# Workspace handling:
Mod1 F1    :Workspace 1                    # Goto workspace 1
Mod1 F2    :Workspace 2                    # Goto workspace 2
Mod1 F3    :Workspace 3                    # Goto workspace 3
Mod1 Right :NextWorkspace                  # Goto higher ID workspace
Mod1 Left  :PrevWorkspace                  # Goto lower ID workspace
Mod1 Next  :ShowDesktop                    # Iconify all windows
Mod1 Prior :Deiconify AllWorkspace origin  # Deiconify all windows
Mod4 Next  :Minimize                       # Iconify active window
Mod4 Prior :Deiconify LastWorkspace origin # Deiconify last iconified window

# Fluxbox menus:
none Menu :RootMenu                        # Main menu
Mod4 Menu :WindowMenu                      # Window menu
Mod1 Menu :WorkspaceMenu                   # Workspace menu

# Misc:
Mod4 space :ToggleDecor                    # Toggle window decorations
Mod4 F4    :Close                          # Close window

################################################################################
## Application shortcuts:
################################################################################

# Screenshots:
Mod1 Scroll_Lock :Exec import ~/screenshot-`date +%d-%h-%Y_%H-%M-%S`.png
none Scroll_Lock :Exec import -window root ~/screenshot-`date +%d-%h-%Y_%H-%M-%$

# Volume control:
Mod4 KP_Add      :Exec amixer set Master 3+         # Increase master volume
Mod4 KP_Subtract :Exec amixer set Master 3-         # Decrease master volume

# XF86 extension keys:
none XF86AudioMedia :Exec beep-media-player         # Open media player
none XF86AudioPlay  :Exec beep-media-player -t      # Pause/unpause media player
Mod1 XF86AudioMedia :Exec beep-media-player -r      # Skip to previous track
Mod1 XF86AudioPlay  :Exec beep-media-player -f      # Skip to next track
none XF86AudioMute  :Exec amixer set Master toggle  # Mute/Unmute master channel
none XF86Favorites  :Exec xffm ~/                   # File browser
none XF86Mail       :Exec thunderbird               # E-mail client
none XF86HomePage   :Exec firefox                   # Web browser

# Misc:
Mod1 T     :Exec urxvt                              # Terminal
Mod1 C     :Exec LC_ALL="C" xcalc                   # Calculator
Mod1 F     :Exec xffm ~/                            # File browser
Mod1 Pause :Exec xrandr -s 0                        # Reset resolution
Edit: Added more comments.
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Top
Shiner_Man
Apprentice
Apprentice
User avatar
Posts: 180
Joined: Tue Mar 09, 2004 10:57 pm
Contact:
Contact Shiner_Man
Website

  • Quote

Post by Shiner_Man » Sun Apr 24, 2005 4:05 am

Right on man!

Is there a list of what Mod goes to what key? I can't seem to find one.
My Site
Top
pianosaurus
l33t
l33t
User avatar
Posts: 944
Joined: Mon Apr 19, 2004 9:45 pm
Location: Bash$

  • Quote

Post by pianosaurus » Mon Apr 25, 2005 4:18 pm

All I know is that Mod1 is alt and Mod4 is tux/win. I don't know if there are any others at all. I do know that it's possible to somehow set up your own mod keys in fluxbox. Saw it somewhere here on the forum. Try searching if you're interested.
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Top
Anardil
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Sun Jun 27, 2004 7:59 pm

  • Quote

Post by Anardil » Sat Feb 04, 2006 2:56 pm

Does ne1 know what Mod the menu-key on common Windows-keyboards is?
Top
broken_chaos
Guru
Guru
Posts: 370
Joined: Wed Jan 18, 2006 7:47 am
Location: Ontario, Canada

  • Quote

Post by broken_chaos » Sat Feb 04, 2006 8:41 pm

Anardil wrote:Does ne1 know what Mod the menu-key on common Windows-keyboards is?
Menu key is not a Mod key. It's "Menu" in the Fluxbox key configurations (and is used in Cuber's keys file, too).

Used in his file here:

Code: Select all

# Fluxbox menus:
none Menu :RootMenu                        # Main menu
Mod4 Menu :WindowMenu                      # Window menu
Mod1 Menu :WorkspaceMenu                   # Workspace menu
Top
Anardil
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Sun Jun 27, 2004 7:59 pm

  • Quote

Post by Anardil » Sun Feb 05, 2006 1:04 pm

Menu key is not a Mod key. It's "Menu" in the Fluxbox key configurations (and is used in Cuber's keys file, too).
I know that this is a built in function of fluxbox but what i meant was the physical context menu key on common
Win95-keyboards.

There is the win/mac-key on the one hand and on most keyboards the menu-key, which pops up context-menus in Windows.

The win/mac-key is Mod4. Now i'd like to know what mod-ifier the "Menu-Key" is, which would be quit handy to open the
fluxbox-menu by binding it to the fluxbox-builtin-function RootMenu ;-)
Top
pianosaurus
l33t
l33t
User avatar
Posts: 944
Joined: Mon Apr 19, 2004 9:45 pm
Location: Bash$

  • Quote

Post by pianosaurus » Mon Feb 06, 2006 10:27 pm

Anardil wrote:The win/mac-key is Mod4. Now i'd like to know what mod-ifier the "Menu-Key" is, which would be quit handy to open the
fluxbox-menu by binding it to the fluxbox-builtin-function RootMenu ;-)
That's exactly what I have done. The menu-key's name is "Menu" and is not a modifier like the win/mac-key is, just like broken_chaos said. Notice in the code he quoted that the key named Menu is bound to the RootMenu command (with no modifier).
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Top
Anardil
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Sun Jun 27, 2004 7:59 pm

  • Quote

Post by Anardil » Mon Feb 06, 2006 11:17 pm

sry for the inconvenience :oops:
Obviously didn't realy read sry gys
Top
pianosaurus
l33t
l33t
User avatar
Posts: 944
Joined: Mon Apr 19, 2004 9:45 pm
Location: Bash$

  • Quote

Post by pianosaurus » Mon Feb 06, 2006 11:34 pm

Hehe, no problem. Could happen to anyone.
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Top
Dan Forever
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 79
Joined: Mon Jun 13, 2005 1:04 pm
Location: London, England

  • Quote

Post by Dan Forever » Tue Feb 07, 2006 1:20 am

A While ago I tried binding Mod4 F4 to close, to get a similar functionality to windows "alt-f4" but it didn't seem to work. However, with this binding in place, simply pressing F4 on it's own would close a window 8O

Code: Select all

Mod4 F4 :Close
Top
pianosaurus
l33t
l33t
User avatar
Posts: 944
Joined: Mon Apr 19, 2004 9:45 pm
Location: Bash$

  • Quote

Post by pianosaurus » Wed Feb 08, 2006 2:10 pm

Dan Forever wrote:A While ago I tried binding Mod4 F4 to close, to get a similar functionality to windows "alt-f4" but it didn't seem to work. However, with this binding in place, simply pressing F4 on it's own would close a window 8O

Code: Select all

Mod4 F4 :Close
Hmm. Both Mod4 F4 and Mod1 F4 works just fine here. I'm having a little trouble getting gentoo onto my new computer with NForce 430, so I'm in windows right now, but if I remember correctly you can set the windows key to be an ordinary key instead of a meta key with modmap-settings. Maybe that's what's wrong with your setup?
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Top
YukataNinja
n00b
n00b
User avatar
Posts: 14
Joined: Wed Mar 15, 2006 4:28 am
Location: Seattle, WA

  • Quote

Post by YukataNinja » Mon Mar 27, 2006 2:48 am

cool, thanks. I also like tabs so I find this helpful:

Code: Select all

Mod4 Tab :NextTab
Mod4 Shift Tab :PrevTab
Top
Post Reply

12 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic