Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

By default, in fluxbox if you hold down alt and press the left mouse button on a window, you can move it. I like this feature.

But I'm trying to use inkscape, which has its own use for alt. Can I disable the window-moving option for the alt key, whenever the active window is inkscape?

share|improve this question

The Alt key (mostly mapped to the Mod1 - modifier) is used not only by Inkscape but also by many many many .. many other programs: Gimp, Blender, Browsers, Editors, etc. And not only on Unix but also on Windows and Mac. Thus, I personally use the Win key as the trigger for most fluxbox actions:

OnWindow Mod4 Mouse1 :StartMoving
OnWindow Mod4 Mouse3 :StartResizing NearestCorner

(part of my .fluxbox/keys). You could use some undocumented actions to switch to a different KeyMode when the focus switched to Inkscape and switches back to the default behavior when Inkscape loses the focus but in the long term I think that will only confuse your user experience. Use the Win - key and be happy with it.

share|improve this answer
The thing is-- I don't have a win key! I use an old mechanic keyboard, and I wouldn't change it for the world :) What do you mean by undocumented actions? – lentic catachresis Apr 28 '13 at 11:55
they are undocumented for a reason... :) anyway: what other unused keys do you have on your mechanic keyboard? You can also map the left and the right Alt-keys to a different modifier (mod1 and mod4) ... – akira Apr 28 '13 at 12:05

You can modify your keys file located into ~username/.fluxbox/.

  1. Open the file using your favorite text editor
  2. Looking for a comment like: alt + left/right click to move/resize a window
  3. Below that line, you'll find something like this:
    OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
  4. You can remplace the mod1 part with another key (i.e. the Control key)
    OnWindow Control Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
  5. Save changes and you can see the effects after restart fluxbox.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.