2 -- PWM main configuration file
4 -- This file only includes some settings that are rather frequently altered,
5 -- and the differences between PWM and Ion. The rest of the settings are in
6 -- cfg_ioncore.lua and individual modules' configuration files
7 -- (cfg_modulename.lua).
10 -- Set default modifiers. Alt should usually be mapped to Mod1 on
11 -- XFree86-based systems. The flying window keys are probably Mod3
12 -- or Mod4; see the output of 'xmodmap'.
16 -- Some basic settings
18 -- Maximum delay between clicks in milliseconds to be considered a
22 -- For keyboard resize, time (in milliseconds) to wait after latest
23 -- key press before automatically leaving resize mode (and doing
24 -- the resize in case of non-opaque move).
25 --kbresize_delay=1500,
28 --opaque_resize=false,
30 -- Movement commands warp the pointer to frames instead of just
31 -- changing focus. Enabled by default.
35 -- cfg_ioncore contains configuration of the Ion 'core'
39 --dopath("cfg_modules")
42 --dopath("mod_tiling")
43 --dopath("mod_panews")
44 --dopath("mod_statusbar")
50 -- PWM customisations to bindings and menus
54 -- Unbind anything using mod_query and rebinding to mod_menu where
57 defbindings("WScreen", {
58 kpress(ALTMETA.."F12", "mod_menu.menu(_, _sub, 'mainmenu', {big=true})"),
61 defbindings("WMPlex.toplevel", {
62 kpress(ALTMETA.."F1", nil),
63 kpress(META.. "F1", "ioncore.exec_on(_, ':man pwm3')"),
64 kpress(ALTMETA.."F3", nil),
65 kpress(META.. "F3", nil),
66 kpress(ALTMETA.."F4", nil),
67 kpress(ALTMETA.."F5", nil),
68 kpress(ALTMETA.."F6", nil),
69 kpress(ALTMETA.."F9", nil),
70 kpress(META.."G", nil),
71 kpress(META.."A", nil),
74 defbindings("WFrame", {
75 kpress(META.."M", "mod_menu.menu(_, _sub, 'ctxmenu')"),
78 -- Make a new main menu with additional workspace menu.
81 submenu("Programs", "appmenu"),
82 menuentry("Lock screen", "ioncore.exec_on(_, 'xlock')"),
83 menuentry("Help", "ioncore.exec_on(_, ':man pwm3')"),
84 submenu("Workspaces", "wsmenu"),
85 menuentry("New", "ioncore.create_ws(_)"),
86 submenu("Styles", "stylemenu"),
87 submenu("Session", "sessionmenu"),
92 menuentry("New", "ioncore.create_ws(_)"),
93 menuentry("Close", "WRegion.rqclose(_sub)",
95 submenu("List", "workspacelist"),