-- -- Ion main configuration file -- -- This file only includes some settings that are rather frequently altered. -- The rest of the settings are in cfg_ioncore.lua and individual modules' -- configuration files (cfg_modulename.lua). -- -- Set default modifiers. Alt should usually be mapped to Mod1 on -- XFree86-based systems. The flying window keys are probably Mod3 -- or Mod4; see the output of 'xmodmap'. META="Mod1+" --ALTMETA="" -- Terminal emulator -- starts xterm as login shell XTERM="xterm -ls -sb -sl 2000 -fa bitstream_vera_sans_mono -fs 10 -bg gray -fg black" -- Some basic settings ioncore.set{ -- Maximum delay between clicks in milliseconds to be considered a -- double click. --dblclick_delay=250, -- For keyboard resize, time (in milliseconds) to wait after latest -- key press before automatically leaving resize mode (and doing -- the resize in case of non-opaque move). --kbresize_delay=1500, -- Opaque resize? --opaque_resize=false, -- Movement commands warp the pointer to frames instead of just -- changing focus. Enabled by default. --warp=true, -- Switch frames to display newly mapped windows --switchto=true, -- Default index for windows in frames: one of 'last', 'next' (for -- after current), or 'next-act' (for after current and anything with -- activity right after it). --frame_default_index='next', -- Auto-unsqueeze transients/menus/queries. --unsqueeze=true, -- Display notification tooltips for activity on hidden workspace. --screen_notify=true, } -- Load default settings. The file cfg_defaults loads all the files -- commented out below, except mod_dock. If you do not want to load -- something, comment out this line, and uncomment the lines corresponding -- the the modules or configuration files that you want, below. -- The modules' configuration files correspond to the names of the -- modules with 'mod' replaced by 'cfg'. dopath("cfg_defaults") -- Load configuration of the Ion 'core' --dopath("cfg_ioncore") -- Load some kludges to make apps behave better. --dopath("cfg_kludges") -- Define some layouts. --dopath("cfg_layouts") -- Load some modules. --dopath("mod_query") --dopath("mod_menu") --dopath("mod_tiling") --dopath("mod_statusbar") --dopath("mod_dock") --dopath("mod_sp") -- -- Common customisations -- -- Uncommenting the following lines should get you plain-old-menus instead -- of query-menus. --defbindings("WScreen", { -- kpress("Mod4+a", "amarok -f"), --}) -- my keybindings -- switch frame defbindings("WMPlex.toplevel", { bdoc("Switch Frame"), kpress("Mod4+Tab", "WFrame.switch_next(_)"), }) defbindings("WMPlex.toplevel", { bdoc("Sart xterm."), kpress("Mod4+s", "ioncore.exec_on(_,'"..XTERM.."' )"), }) -- for amarok defbindings("WMPlex.toplevel", { bdoc("Sart amarok."), kpress("Mod4+q", "ioncore.exec_on(_, 'audacious -p')"), }) defbindings("WMPlex.toplevel", { bdoc("Skip to next track."), kpress("Mod4+a", "ioncore.exec_on(_, 'audacious -f')"), }) defbindings("WMPlex.toplevel", { bdoc("Skip to previews track."), kpress("Mod4+y", "ioncore.exec_on(_, 'audacious -r')"), }) defbindings("WMPlex.toplevel", { bdoc("Play/Pause"), kpress("Mod4+x", "ioncore.exec_on(_, 'audacious -t')"), }) -- launch different apps defbindings("WMPlex.toplevel", { bdoc("Start Firefox"), kpress("Mod4+w", "ioncore.exec_on(_, 'firefox')"), }) defbindings("WMPlex.toplevel", { bdoc("Start Thunderbird"), kpress("Mod4+e", "ioncore.exec_on(_, 'thunderbird')"), }) defbindings("WMPlex.toplevel", { bdoc("Start Pidgin"), kpress("Mod4+r", "ioncore.exec_on(_, 'pidgin')"), }) --defbindings("WMPlex.toplevel", { -- kpress(META.."M", "mod_menu.menu(_, _sub, 'ctxmenu')"), --})