]> git.decadent.org.uk Git - ion3.git/blob - ioncore/ioncore_efbb.lua
af1134cfe51061a9e9d2b959aa83b5b3452d1d27
[ion3.git] / ioncore / ioncore_efbb.lua
1 --
2 -- ion/share/ioncore_efbb.lua -- Minimal emergency fallback bindings.
3 -- 
4 -- Copyright (c) Tuomo Valkonen 2004-2007.
5 --
6 -- Ion is free software; you can redistribute it and/or modify it under
7 -- the terms of the GNU Lesser General Public License as published by
8 -- the Free Software Foundation; either version 2.1 of the License, or
9 -- (at your option) any later version.
10 --
11
12 warn(TR([[
13 Making the following minimal emergency mappings:
14   F2 -> xterm
15   F11 -> restart
16   F12 -> exit
17   Mod1+C -> close
18   Mod1+K P/N -> WFrame.switch_next/switch_prev
19 ]]))
20
21
22 defbindings("WScreen", {
23     kpress("F2", function() ioncore.exec('xterm')  end),
24     kpress("F11", function() ioncore.restart() end),
25     kpress("F12", function() ioncore.exit() end),
26 })
27
28 defbindings("WMPlex", {
29     kpress_wait("Mod1+C", WRegion.rqclose_propagate),
30 })
31
32 defbindings("WFrame", {
33     submap("Mod1+K", {
34         kpress("AnyModifier+N", function(f) f:switch_next() end),
35         kpress("AnyModifier+P", function(f) f:switch_prev() end),
36     })
37 })