diff -u -urN icewm-1.0.9.vanilla/src/bindkey.h icewm-1.0.9-launch-app/src/bindkey.h --- icewm-1.0.9.vanilla/src/bindkey.h Tue Oct 9 09:54:03 2001 +++ icewm-1.0.9-launch-app/src/bindkey.h Mon Apr 22 19:43:21 2002 @@ -61,6 +61,9 @@ #define defgKeySysWorkspace11TakeWin '-', kfAlt+kfCtrl+kfShift, "Alt+Ctrl+Shift+[" #define defgKeySysWorkspace12TakeWin '=', kfAlt+kfCtrl+kfShift, "Alt+Ctrl+Shift+]" #define defgKeySysWorkspace12 '=', kfAlt+kfCtrl, "Alt+Ctrl+]" +#define defgKeySysLaunchApp1 '1', kfCtrl, "Ctrl+1" +#define defgKeySysLaunchApp2 '2', kfCtrl, "Ctrl+2" +#define defgKeySysLaunchApp3 '3', kfCtrl, "Ctrl+3" #define defgKeySysTileVertical XK_F2, kfAlt+kfShift, "Alt+Shift+F2" #define defgKeySysTileHorizontal XK_F3, kfAlt+kfShift, "Alt+Shift+F3" #define defgKeySysCascade XK_F4, kfAlt+kfShift, "Alt+Shift+F4" @@ -160,6 +163,9 @@ DEF_WMKEY(gKeySysWorkspace10TakeWin); DEF_WMKEY(gKeySysWorkspace11TakeWin); DEF_WMKEY(gKeySysWorkspace12TakeWin); +DEF_WMKEY(gKeySysLaunchApp1); +DEF_WMKEY(gKeySysLaunchApp2); +DEF_WMKEY(gKeySysLaunchApp3); DEF_WMKEY(gKeySysTileVertical); DEF_WMKEY(gKeySysTileHorizontal); DEF_WMKEY(gKeySysCascade); diff -u -urN icewm-1.0.9.vanilla/src/default.h icewm-1.0.9-launch-app/src/default.h --- icewm-1.0.9.vanilla/src/default.h Tue Oct 9 09:54:03 2001 +++ icewm-1.0.9-launch-app/src/default.h Mon Apr 22 19:47:06 2002 @@ -372,6 +372,9 @@ XSV(const char *, netClassHint, "netstat.XTerm") XSV(const char *, netDevice, "ppp0 eth0") XSV(const char *, addressBarCommand, 0) +XSV(const char *, launchAppCommand1, "xterm") +XSV(const char *, launchAppCommand2, "netscape") +XSV(const char *, launchAppCommand3, "xlock") #ifdef CONFIG_I18N XSV(const char *, fmtTime, "%X") XSV(const char *, fmtTimeAlt, NULL) @@ -715,6 +718,9 @@ OSV("NetStatusCommand", &netCommand, "Command to run on Net status"), OSV("NetStatusClassHint", &netClassHint, "WM_CLASS to allow runonce for NetStatusCommand"), OSV("AddressBarCommand", &addressBarCommand, "Command to run for address bar entries"), + OSV("LaunchAppCommand1", &launchAppCommand1, "Command to run when launch app #1 hotkey is hit"), + OSV("LaunchAppCommand2", &launchAppCommand2, "Command to run when launch app #2 hotkey is hit"), + OSV("LaunchAppCommand3", &launchAppCommand3, "Command to run when launch app #3 hotkey is hit"), OSV("NetworkStatusDevice", &netDevice, "Network device to show status for"), OSV("TimeFormat", &fmtTime, "Clock Time format (strftime format string)"), OSV("TimeFormatAlt", &fmtTimeAlt, "Alternate Clock Time format (e.g. for blinking effects)"), @@ -918,6 +924,9 @@ OKV("KeySysWorkspace10TakeWin", gKeySysWorkspace10TakeWin, ""), OKV("KeySysWorkspace11TakeWin", gKeySysWorkspace11TakeWin, ""), OKV("KeySysWorkspace12TakeWin", gKeySysWorkspace12TakeWin, ""), + OKV("KeySysLaunchApp1", gKeySysLaunchApp1, ""), + OKV("KeySysLaunchApp2", gKeySysLaunchApp2, ""), + OKV("KeySysLaunchApp3", gKeySysLaunchApp3, ""), OKV("KeySysTileVertical", gKeySysTileVertical, ""), OKV("KeySysTileHorizontal", gKeySysTileHorizontal, ""), OKV("KeySysCascade", gKeySysCascade, ""), diff -u -urN icewm-1.0.9.vanilla/src/wmmgr.cc icewm-1.0.9-launch-app/src/wmmgr.cc --- icewm-1.0.9.vanilla/src/wmmgr.cc Tue Oct 9 09:54:04 2001 +++ icewm-1.0.9-launch-app/src/wmmgr.cc Mon Apr 22 19:46:02 2002 @@ -154,6 +154,9 @@ GRAB_WMKEY(gKeySysWorkspace10TakeWin); GRAB_WMKEY(gKeySysWorkspace11TakeWin); GRAB_WMKEY(gKeySysWorkspace12TakeWin); + GRAB_WMKEY(gKeySysLaunchApp1); + GRAB_WMKEY(gKeySysLaunchApp2); + GRAB_WMKEY(gKeySysLaunchApp3); GRAB_WMKEY(gKeySysTileVertical); GRAB_WMKEY(gKeySysTileHorizontal); @@ -312,6 +315,12 @@ switchToWorkspace(10, true); } else if (IS_WMKEY(k, vm, gKeySysWorkspace12TakeWin)) { switchToWorkspace(11, true); + } else if(IS_WMKEY(k, vm, gKeySysLaunchApp1)) { + app->runCommand(launchAppCommand1); + } else if(IS_WMKEY(k, vm, gKeySysLaunchApp2)) { + app->runCommand(launchAppCommand2); + } else if(IS_WMKEY(k, vm, gKeySysLaunchApp3)) { + app->runCommand(launchAppCommand3); } else if(IS_WMKEY(k, vm, gKeySysTileVertical)) { wmapp->actionPerformed(actionTileVertical, 0); } else if(IS_WMKEY(k, vm, gKeySysTileHorizontal)) {