on Fri, Mar 22, 2002, Rohan Deshpande (rdzx@myrealbox.com) wrote:
> Hey all,
>
> I would like to use WindowMaker, but would also like to configure
> keybindings. As you know, with Debian's streamlined menu system, there
> is no way to customize keybindings through WPrefs since it prompts with
> an error about another program controlling the menu system. Does anyone
> know how to configure keybindings without going through WPrefs?
If I understand your question, it's not about keybindings, but about
creating your own apps root menu for Windowmaker.
I do this with the following as ~/GNUStep/WMRootMenu, which shows a
number of my own hotkey bindings. It also shows the use of an
interactive query (the '%a' directive) to prompt for information before
opening an application.
Note that Debian's menus are still accessed under the "Debian Menus"
link, by invoking:
("Debian menus", OPEN_MENU, "/etc/X11/WindowMaker/menu.hook"),
...you could configure your own menus to your liking, then addd this
action, and you'd have the best of both worlds: your own menus, but
Debian menus for stuff that's actually on your system, automatically
updated for you.
------------------------------------------------------------------------
~/GNUstep/Defaults/WMRootMenu
------------------------------------------------------------------------
(
Commands,
(Run..., SHORTCUT, "Mod1+F2", EXEC, "%a(Run, Command to run:)"),
(Terminal, SHORTCUT, "Shift+Mod1+t", EXEC, rxvt),
(
Rootshell,
SHORTCUT,
"Shift+Mod1+r",
EXEC,
"rxvt -bg grey20 -fg wheat -exec sudo su -"
),
(Mutt, SHORTCUT, "Shift+Mod1+m", EXEC, "rxvt -name muttTerm -e mutt"),
(
w3m,
SHORTCUT,
"Shift+Mod1+w",
SHEXEC,
"export SHELL=/usr/local/bin/w3m; rxvt -name w3mTerm -bg '#0a2828' -title w3m -e screen w3m"
),
(
Applications,
(Mutt, EXEC, "rxvt -T Mutt -e mutt -y"),
(Galeon, SHORTCUT, "Shift+Mod1+n", EXEC, galeon),
(Skipstone, EXEC, skipstone),
(Dillo, EXEC, dillo),
(Mozilla, EXEC, mozilla),
(Gnumeric, EXEC, gnumeric),
(JPilot, EXEC, jpilot),
(Gimp, EXEC, gimp),
(StarOffice, EXEC, soffice),
(XChat, EXEC, xchat),
(
"Xlogo confirm",
SHEXEC,
" ~/bin/xlogo.sh \"%a(xlogo ,Run xlogo now [y/n?])\""
),
(
XShells,
(Eterm, EXEC, "/usr/bin/Eterm"),
("Gnome Term", EXEC, "/usr/bin/gnome-terminal"),
(Konsole, EXEC, konsole),
(rxvt, EXEC, rxvt),
(xterm, EXEC, xterm),
(wterm, EXEC, wterm)
),
(
Emulators,
("DOS Emulator", EXEC, "/usr/bin/xdos"),
("PalmOS Emulator", EXEC, "/usr/bin/pose"),
(VMWare, EXEC, vmware)
),
(
Utilities,
(FSViewer, EXEC, fsviewer),
(Calculator, EXEC, xcalc),
(XProp, EXEC, xprop),
("Font Chooser", EXEC, xfontsel),
(ColorMap, EXEC, xcmap),
(ColorSel, EXEC, xcolorsel),
(
top,
SHORTCUT,
"Control+Mod1+p",
EXEC,
"rxvt -bg black -fg green -fn fixed -T top -e top -s"
),
(xosview, EXEC, xosview)
)
),
(
Editors,
(
vim,
SHORTCUT,
"Shift+Mod1+v",
EXEC,
"rxvt -T vim -bg darkslategrey -fg gold -cr yellow1 -e vim"
),
(emacs, EXEC, emacs),
(xemacs, SHORTCUT, "Shift+Mod1+x", EXEC, xemacs),
(AbiWord, SHORTCUT, "Shift+Mod1+a", EXEC, AbiWord),
(WordPerfect, EXEC, "/usr/local/bin/X11/wp"),
(nedit, EXEC, nedit),
(ted, EXEC, ted),
(lyx, EXEC, lyx),
(
bvi,
EXEC,
"rxvt -T bvi -bg darkslategrey -fg green2 -cr yellow1 -e bvi"
)
),
(
Info,
(Info, INFO_PANEL),
("Legal Panel", LEGAL_PANEL),
("Default menu", OPEN_MENU, "/etc/X11/WindowMaker/menu "),
(
"Help MENU",
("Debian Online Help", EXEC, "/usr/bin/dhelp"),
("Debian Online Help (old)", EXEC, "/usr/bin/dhelp_fsstnd"),
("Gnome Help", EXEC, "/usr/bin/gnome-help-browser"),
(Info, EXEC, "x-terminal-emulator -T 'Info' -e /usr/bin/info"),
(Xman, EXEC, xman)
)
),
("Debian menus", OPEN_MENU, "/etc/X11/WindowMaker/menu.hook"),
(
WorkSpace,
(Appearance, OPEN_MENU, appearance.menu),
("Arrange Icons", ARRANGE_ICONS),
("Clear Session", CLEAR_SESSION),
("Hide Others", HIDE_OTHERS),
("Save Session", SAVE_SESSION),
("Show All", SHOW_ALL)
),
(Workspaces, WORKSPACE_MENU),
(Refresh, REFRESH),
(
Screen,
(
Lock,
SHORTCUT,
"Shift+Mod1+slash",
EXEC,
"/usr/bin/xscreensaver-command -lock"
),
("Activate (no lock)", EXEC, "/usr/bin/xscreensaver-command -activate"),
("Enable Screensaver", EXEC, "/usr/bin/xscreensaver"),
("Disable Screensaver", EXEC, "/usr/bin/xscreensaver-command -exit"),
(
"Restart Screensaver",
EXEC,
"/usr/bin/xscreensaver-command -restart"
),
("Demo Screensaver", EXEC, "/usr/bin/xscreensaver-command -demo"),
("Screensaver Pefs", EXEC, "/usr/bin/xscreensaver-command -prefs")
),
(
Exit,
(Restart, RESTART),
(
WindowManagers,
(WindowMaker, RESTART, "/usr/X11R6/bin/wmaker"),
(Sawmill, RESTART, "/usr/bin/sawmill"),
(BlackBox, RESTART, "/usr/bin/blackbox"),
(Enlightenment, RESTART, "/usr/bin/enlightenment"),
(fvwm, RESTART, "/usr/bin/X11/fvwm"),
(vtwm, RESTART, "/usr/bin/X11/vtwm"),
(twm, RESTART, "/usr/bin/X11/twm"),
(KDE, RESTART, "/usr/bin/kde2"),
(GNOME, RESTART, "/usr/bin/gnome-session")
),
(Exit, EXIT),
("Exit X Session", SHUTDOWN)
)
)
------------------------------------------------------------------------
--
Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/
What part of "Gestalt" don't you understand? There is no K5 cabal
http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
Attachment:
pgpjFwEh8gSX_.pgp
Description: PGP signature