]> git.decadent.org.uk Git - ion3.git/blobdiff - pwm/cfg_pwm.lua
Update cfg_kludge_flash for Flash 10
[ion3.git] / pwm / cfg_pwm.lua
index ca01137e8e972e82c42be4cd1983267fcf2ba121..97026b238c74b8c9a75f6cace0ed7bc9ecb5ecb8 100644 (file)
@@ -50,16 +50,16 @@ dopath("mod_dock")
 --
 
 
--- Unbind anything using mod_query and rebinding to mod_menu where
+-- Unbind anything using mod_query and rebind to mod_menu where
 -- applicable.
 
 defbindings("WScreen", {
+    bdoc("Display the main menu."),
     kpress(ALTMETA.."F12", "mod_menu.menu(_, _sub, 'mainmenu', {big=true})"),
 })
 
 defbindings("WMPlex.toplevel", {
     kpress(ALTMETA.."F1", nil),
-    kpress(META..   "F1", "ioncore.exec_on(_, ':man pwm3')"),
     kpress(ALTMETA.."F3", nil),
     kpress(META..   "F3", nil),
     kpress(ALTMETA.."F4", nil),
@@ -67,11 +67,16 @@ defbindings("WMPlex.toplevel", {
     kpress(ALTMETA.."F6", nil),
     kpress(ALTMETA.."F9", nil),
     kpress(META.."G", nil),
-    kpress(META.."A", nil),
+    
+    bdoc("Show the PWM manual page."),
+    kpress(META..   "F1", "ioncore.exec_on(_, ':man pwm3')"),
+    
+    bdoc("Display context menu."),
+    kpress(META.."M", "mod_menu.menu(_, _sub, 'ctxmenu')"),
 })
 
-defbindings("WFrame", {
-    kpress(META.."M", "mod_menu.menu(_, _sub, 'ctxmenu')"),
+defbindings("WFrame.toplevel", {
+    kpress(META.."A", nil),
 })
 
 -- Make a new main menu with additional workspace menu.
@@ -81,11 +86,22 @@ defmenu("mainmenu", {
     menuentry("Lock screen", "ioncore.exec_on(_, 'xlock')"),
     menuentry("Help",        "ioncore.exec_on(_, ':man pwm3')"),
     submenu("Workspaces",    "wsmenu"),
-    menuentry("New",         "ioncore.create_ws(_)"),
     submenu("Styles",        "stylemenu"),
     submenu("Session",       "sessionmenu"),
 })
 
+-- Application menu
+defmenu("appmenu", {
+    menuentry("XTerm",          "ioncore.exec_on(_, 'xterm')"),
+    menuentry("W3M",            "ioncore.exec_on(_, ':w3m -v')"),
+    menuentry("Rxvt",           "ioncore.exec_on(_, 'rxvt')"),
+    menuentry("Opera",          "ioncore.exec_on(_, 'opera')"),
+    menuentry("Links",          "ioncore.exec_on(_, ':links')"),
+    menuentry("Konqueror",      "ioncore.exec_on(_, 'konqueror')"),
+    menuentry("Dillo",          "ioncore.exec_on(_, 'dillo')"),
+    menuentry("Run...",         "mod_query.query_exec(_)"),
+})
+
 -- Workspace menu
 defmenu("wsmenu", {
     menuentry("New",         "ioncore.create_ws(_)"),