-- ether configuration -- Copy this file to ~/.config/ether/config.lua and edit as needed. -- appearance ether.sloppy_focus(true) ether.bypass_surface_visibility(false) ether.border_width(1) ether.border_color("#444444ff") ether.focus_color("#005577ff") ether.urgent_color("#ff0000ff") ether.root_color("#222222ff") ether.fullscreen_bg("#000000ff") -- logging: "silent", "error", "info", "debug" ether.log_level("error") -- keyboard ether.xkb_rules({ -- rules = "base", -- model = "pc105", -- layout = "us", -- variant = "", -- options = "ctrl:nocaps", }) ether.repeat_rate(25) ether.repeat_delay(600) -- trackpad ether.trackpad({ tap_to_click = true, tap_and_drag = true, drag_lock = true, natural_scrolling = false, disable_while_typing = true, left_handed = false, middle_button_emulation = false, accel_speed = 0.0, scroll_method = "2fg", -- "no_scroll", "2fg", "edge", "on_button_down" click_method = "button_areas", -- "none", "button_areas", "clickfinger" send_events = "enabled", -- "enabled", "disabled", "disabled_on_external_mouse" accel_profile = "adaptive", -- "flat", "adaptive" button_map = "lrm", -- "lrm", "lmr" }) -- layouts ether.layout({ name = "[]=", arrange = "tile" }) ether.layout({ name = "><>", arrange = "float" }) ether.layout({ name = "[M]", arrange = "monocle" }) -- monitor rules ether.monitor({ -- name = "eDP-1", -- match by substring; nil = match all mfact = 0.55, nmaster = 1, scale = 1.0, layout = "[]=", -- transform = "normal", -- "normal", "90", "180", "270", "flipped", etc. -- x = -1, y = -1, -- -1 = auto }) -- application rules ether.rule({ app_id = "firefox", tags = 1 << 8 }) ether.rule({ app_id = "Gimp", float = true }) -- keybindings local MOD = { "ALT" } ether.key({ mods = MOD, key = "p", action = "spawn", arg = "wmenu-run" }) ether.key({ mods = { "ALT", "SHIFT" }, key = "Return", action = "spawn", arg = "foot" }) ether.key({ mods = MOD, key = "j", action = "focusstack", arg = { delta = 1 } }) ether.key({ mods = MOD, key = "k", action = "focusstack", arg = { delta = -1 } }) ether.key({ mods = MOD, key = "i", action = "incnmaster", arg = { delta = 1 } }) ether.key({ mods = MOD, key = "d", action = "incnmaster", arg = { delta = -1 } }) ether.key({ mods = MOD, key = "h", action = "setmfact", arg = { delta = -0.05 } }) ether.key({ mods = MOD, key = "l", action = "setmfact", arg = { delta = 0.05 } }) ether.key({ mods = MOD, key = "Return", action = "zoom" }) ether.key({ mods = MOD, key = "Tab", action = "view" }) ether.key({ mods = { "ALT", "SHIFT" }, key = "c", action = "killclient" }) ether.key({ mods = MOD, key = "t", action = "setlayout", arg = { layout = "[]=" } }) ether.key({ mods = MOD, key = "f", action = "setlayout", arg = { layout = "><>" } }) ether.key({ mods = MOD, key = "m", action = "setlayout", arg = { layout = "[M]" } }) ether.key({ mods = MOD, key = "space", action = "setlayout" }) ether.key({ mods = { "ALT", "SHIFT" }, key = "space", action = "togglefloating" }) ether.key({ mods = MOD, key = "e", action = "togglefullscreen" }) ether.key({ mods = MOD, key = "0", action = "view", arg = { tag = 0xFFFFFFFF } }) ether.key({ mods = { "ALT", "SHIFT" }, key = "parenright", action = "tag", arg = { tag = 0xFFFFFFFF } }) ether.key({ mods = MOD, key = "comma", action = "focusmon", arg = { direction = "left" } }) ether.key({ mods = MOD, key = "period", action = "focusmon", arg = { direction = "right" } }) ether.key({ mods = { "ALT", "SHIFT" }, key = "less", action = "tagmon", arg = { direction = "left" } }) ether.key({ mods = { "ALT", "SHIFT" }, key = "greater", action = "tagmon", arg = { direction = "right" } }) -- tag keybindings (view/toggleview/tag/toggletag for tags 1-9) ether.tags(9) ether.key({ mods = { "ALT", "SHIFT" }, key = "q", action = "quit" }) ether.key({ mods = { "CTRL", "ALT" }, key = "BackSpace", action = "quit" }) -- Ctrl+Alt+F1..F12 to switch virtual terminals for i = 1, 12 do ether.key({ mods = { "CTRL", "ALT" }, key = string.format("XF86Switch_VT_%d", i), action = "chvt", arg = { vt = i } }) end -- reload config at runtime (Super+R) ether.key({ mods = { "SUPER" }, key = "r", action = "reload" }) -- mouse bindings ether.mouse({ mods = MOD, button = "left", action = "moveresize", arg = { mode = "move" } }) ether.mouse({ mods = MOD, button = "middle", action = "togglefloating" }) ether.mouse({ mods = MOD, button = "right", action = "moveresize", arg = { mode = "resize" } })