Modifying key bindings in xfwm4

JoeHill joehill-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Fri Mar 26 16:40:20 UTC 2004


On Thu, 25 Mar 2004 18:34:16 -0500
Anton Markov disseminated the following:

> I am currently using the Xfce4 environment which uses Xfwm4 as the
> window manager. Currently if I hold down the Alt key and left-click in a
> window, I can move the window. However, the Alt key is used in both The
> Gimp and Adobe Photoshop (under Crossover) for an important image
> manipulation command (activating the color pick tool). In KDE, I was
> able to change the "Move window" binding from the Alt key to the Win
> key. I would like to do the same under Xfce4 (using Xfwm4).

BTW, I don't know how attached to XFCE4 you are, but I really can't resist
promoting Pekwm, which gives you complete control over how your windows behave
and respond to keybindings. This particular binding is easily configured in
Pekwm like so:

	Motion = "Mod1 1" { Actions = "Move" }

which means Alt + Button 1 will move the window.

You can actually run Pekwm as the WM instead of XFWM, with the XFCE panel and
such if you wish. The themes maybe aren't as pretty, but if configurability is
your priority...

Here is the rest of my mouse config to give you an idea how configurable Pekwm
is:

Frame {
	ButtonRelease = "1" { Actions = "Raise" }
	ButtonRelease = "2" { Actions = "Close" }
	ButtonRelease = "3" { Actions = "Toggle Shaded" }
	ButtonRelease = "4" { Actions = "NextInFrame" }
	ButtonRelease = "5" { Actions = "PrevInFrame" }
	DoubleClick = "1" { Actions = "Showmenu Window" }
	Motion = "1" { Actions = "Move" }
	Motion = "Mod1 1" { Actions = "Move" }
	Motion = "2" { Threshold = "4"; Actions = "GroupingDrag True" }
	Motion = "Mod1 3" { Actions = "Resize" }

	Enter = "Any Any" { Actions = "Focus" }
}

FrameBorder {
	TopLeft {
		ButtonPress = "1" { Actions = "Resize TopLeft" }
		Enter = "Any Any" { Actions = "Focus" }
	}
	Top {
		ButtonPress = "1" { Actions = "Move" }
		Enter = "Any Any" { Actions = "Focus" }
	}
	TopRight {
		ButtonPress = "1" { Actions = "Resize TopRight" }
		Enter = "Any Any" { Actions = "Focus" }
	}
	Left {
		ButtonPress = "1" { Actions = "Move" }
		Enter = "Any Any" { Actions = "Focus" }
	}
	Right {
		ButtonPress = "1" { Actions = "Move" }
		Enter = "Any Any" { Actions = "Focus" }
	}
	BottomLeft {
		ButtonPress = "1" { Actions = "Resize BottomLeft" }
		Enter = "Any Any" { Actions = "Focus" }
	}
	Bottom {
		ButtonPress = "1" { Actions = "Resize Bottom" }
		Enter = "Any Any" { Actions = "Focus" }
	}
	BottomRight {
		ButtonPress = "1" { Actions = "Resize BottomRight" }
		Enter = "Any Any" { Actions = "Focus" }
	}
}

ScreenEdge {
 	Left {
    EnterMovingFrame = "Any Any" { Actions = "WarpFrameToWorkspace Prev" }
  }
	Right {
    EnterMovingFrame = "Any Any" { Actions = "WarpFrameToWorkspace Next" }
}
		Right {
		ButtonPress = "4" { Actions = "GotoWorkspace Next" }
		ButtonPress = "5" { Actions = "GotoWorkspace Prev" }
	}
}



# For viewports
#	Up { Enter = "Any Any" { Actions = "ViewportMoveDirection Up" } }
#	Down { Enter = "Any Any" { Actions = "ViewportMoveDirection Down" } }
#	Left { Enter = "Any Any" { Actions = "ViewportMoveDirection Left" } }
#	Right { Enter = "Any Any" { Actions = "ViewportMoveDirection Right" } }
}

Client {
	ButtonPress = "1" { Actions = "Focus; Raise" }
	Motion = "Mod1 1" { Actions = "Focus; Move" }
	Motion = "Mod1 2" { Threshold = "4"; Actions = "GroupingDrag True" }
	Motion = "Mod1 3" { Actions = "Resize" }

	Enter = "Any Any" { Actions = "Focus" }
}

Root {
	ButtonPress = "3" { Actions = "ShowMenu Root" }
	ButtonPress = "2" { Actions = "ShowMenu Goto" }
	ButtonPress = "4" { Actions = "GoToWorkspace Right" }
	ButtonPress = "5" { Actions = "GoToWorkspace Left" }
	ButtonPress = "6" { Actions = "GoToWorkspace Right" }
	ButtonPress = "7" { Actions = "GoToWorkspace Left" }
# For viewports
#	Motion = "2" { Actions = "ViewportMoveDrag" }
}

Menu {
	Enter = "Any Any" { Actions = "Focus" }
}

-- 
JoeHill
Registered Linux user #282046
Homepage: www.orderinchaos.org
+++++++++++++++++++++++++++
"The free communication of ideas and opinions is one of the most precious of the
rights of man." -- Declaration of the Rights of Man
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list