dotfiles/notion/cfg_notion.lua
2020-08-12 02:29:03 +04:00

131 lines
4.7 KiB
Lua

--
-- Notion main configuration file
--
-- This file only includes some settings that are rather frequently altered.
-- The rest of the settings are in cfg_notioncore.lua and individual modules'
-- configuration files (cfg_modulename.lua).
--
-- When any binding and other customisations that you want are minor, it is
-- recommended that you include them in a copy of this file in ~/.notion/.
-- Simply create or copy the relevant settings at the end of this file (from
-- the other files), recalling that a key can be unbound by passing 'nil'
-- (without the quotes) as the callback. For more information, please see
-- the Notion configuration manual available from the Notion Web page.
--
-- Set default modifiers. The default is the 'windows' key; it is usually mapped
-- to Mod4 on Xorg-based systems. Any other modifier, such as Alt, can be used
-- instead. The 'xmodmap' tool can be used to get/set which key codes correspond
-- to which modifiers, and the 'xev' tool can be used to see what codes are
-- generated by particular keys.
--META="Mod4+"
--ALTMETA=""
-- Terminal emulator.
-- 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,
-- Automatically save layout on restart and exit.
autosave_layout=false,
-- Mouse focus mode; set to "sloppy" if you want the focus to follow the
-- mouse, and to "disabled" otherwise.
-- mousefocus="sloppy",
mousefocus="disabled",
-- Controls Notion's reaction to stacking requests sent by clients. Set to
-- "ignore" to ignore these requests, and to "activate" to set the activity
-- flag on a window that requests to be stacked "Above".
-- window_stacking_request="ignore",
window_stacking_request="activate",
-- Time (in ms) that a window has to be focussed in order to be added to the
-- focus list. Set this to <=0 (or comment it out) to disable the logic, and
-- update the focus list immediately.
--focuslist_insert_delay=1000,
-- If enabled, activity notifiers are displayed on ALL the screens, not just
-- the screen that contains the window producing the notification. This is
-- only relevant on multi-head setups. By default this is disabled.
activity_notification_on_all_screens=true,
-- If enabled, a workspace indicator comes up at the bottom-left of the
-- screen when a new workspace is selected. This indicator stays active for
-- only as long as indicated by this variable (in ms). Timeout values <=0
-- disable the indicator altogether. This is disabled by default.
workspace_indicator_timeout=500,
}
-- 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 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 Notion 'core'. Most bindings are here.
--dopath("cfg_notioncore")
-- Load some kludges to make apps behave better.
--dopath("cfg_kludges")
-- Define some layouts.
--dopath("cfg_layouts")
-- Load some modules. Bindings and other configuration specific to modules
-- are in the files cfg_modulename.lua.
--dopath("mod_query")
--dopath("mod_menu")
--dopath("mod_tiling")
--dopath("mod_statusbar")
--dopath("mod_dock")
--dopath("mod_sp")
--dopath("mod_notionflux")
--dopath("mod_xrandr")
--
-- Common customisations
--
-- Uncommenting the following lines should get you plain-old-menus instead
-- of query-menus.
--defbindings("WScreen", {
-- kpress(ALTMETA.."F12", "mod_menu.menu(_, _sub, 'mainmenu', {big=true})"),
--})
--
--defbindings("WMPlex.toplevel", {
-- kpress(META.."M", "mod_menu.menu(_, _sub, 'ctxmenu')"),
--})