##// END OF EJS Templates
Update config.lua
Update config.lua

File last commit:

r7:43e30f718f3e tip default
r7:43e30f718f3e tip default
Show More
config.lua
109 lines | 4.7 KiB | text/x-lua | LuaLexer
init
r0 sloppy_focus = true
bypass_surface_visibility = false
log_level = "error" -- "silent", "error", "info", "debug"
appearance = {
Update config.lua
r7 -- inner border
inner_border_px = 3,
inner_border_color = 0x76532Bff,
inner_focus_color = 0xfde9caff,
inner_urgent_color = 0xff0000ff,
-- outer border
outer_border_px = 3,
outer_border_color = 0x44270aff,
outer_focus_color = 0x44270aff,
outer_urgent_color = 0x44270aff,
-- gaps
gaps = 10,
init
r0 smart_gaps = false,
Update config.lua
r7 -- rootcol
init
r0 root_color = 0x222222ff,
fullscreen_bg = 0x000000ff,
Update config.lua
r7 -- opacity
inactive_opacity = 1.0,
active_opacity = 1.0,
init
r0 }
input = {
repeat_rate = 50,
Update config.lua
r7 repeat_delay = 225,
init
r0 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,
Update config.lua
r7 scroll_method = "2fg", -- "2fg", "edge", "button"
init
r0 click_method = "button_areas", -- "button_areas", "clickfinger"
accel_profile = "adaptive", -- "adaptive", "flat"
accel_speed = 0.0,
Update config.lua
r7 layout = "us", -- "us", "de", "de,us", ...
-- variant = "nodeadkeys",
-- options = "grp:alt_shift_toggle",
init
r0 }
rules = {
-- { app_id = "Gimp", floating = true, monitor = -1 },
-- { app_id = "firefox", tags = 1 << 8, floating = false, monitor = -1 },
}
monitors = {
-- catch-all rule; name = nil means match anything
Update config.lua
r7 -- { name = nil, mfact = 0.55, nmaster = 1, scale = 1.0,
-- layout = "dwindle", x = -1, y = -1 },
init
r0
-- HiDPI laptop example:
-- { name = "eDP-1", mfact = 0.5, nmaster = 1, scale = 2.0,
-- layout = "dwindle", x = -1, y = -1 },
}
-- autostart: it starts stuff in sequence
autostart = {
Update config.lua
r7 -- "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP",
-- "swaybg -i ~/.config/swindle/walls/1.jpg",
-- "pgrep -x pipewire || pipewire",
-- "pgrep -x dunst || dunst",
init
r0 }
keybinds = {
Update config.lua
r7 { mods = {"logo"}, key = "q", action = "spawn", args = {"foot"} },
init
r0 { mods = {"logo"}, key = "space", action = "spawn", args = {"wofi", "--show", "drun"} },
{ mods = {"logo"}, key = "w", action = "killclient" },
{ mods = {"logo"}, key = "v", action = "togglefloating" },
{ mods = {"logo"}, key = "f", action = "togglefullscreen" },
{ mods = {"logo"}, key = "g", action = "togglegaps" },
{ mods = {"logo"}, key = "h", action = "focusdir", args = {"left"} },
{ mods = {"logo"}, key = "j", action = "focusdir", args = {"down"} },
{ mods = {"logo"}, key = "k", action = "focusdir", args = {"up"} },
{ mods = {"logo"}, key = "l", action = "focusdir", args = {"right"} },
{ mods = {"logo", "shift"}, key = "H", action = "swapdir", args = {"left"} },
{ mods = {"logo", "shift"}, key = "J", action = "swapdir", args = {"down"} },
{ mods = {"logo", "shift"}, key = "K", action = "swapdir", args = {"up"} },
{ mods = {"logo", "shift"}, key = "L", action = "swapdir", args = {"right"} },
{ mods = {"logo"}, key = "Tab", action = "view" },
{ mods = {"logo"}, key = "0", action = "view", args = {"all"} },
{ mods = {"logo"}, key = "comma", action = "focusmon", args = {"left"} },
{ mods = {"logo"}, key = "period", action = "focusmon", args = {"right"} },
{ mods = {"logo", "shift"}, key = "less", action = "tagmon", args = {"left"} },
{ mods = {"logo", "shift"}, key = "greater", action = "tagmon", args = {"right"} },
{ mods = {"logo", "shift"}, key = "e", action = "quit" },
}
for i = 1, 9 do
local key = tostring(i)
local mask = 1 << (i - 1)
table.insert(keybinds, { mods = {"logo"}, key = key, action = "view", args = {tostring(mask)} })
table.insert(keybinds, { mods = {"logo", "ctrl"}, key = key, action = "toggleview", args = {tostring(mask)} })
table.insert(keybinds, { mods = {"logo", "shift"}, key = key, action = "tag", args = {tostring(mask)} })
table.insert(keybinds, { mods = {"logo", "ctrl", "shift"}, key = key, action = "toggletag", args = {tostring(mask)} })
end
buttons = {
{ mods = {"logo"}, button = "left", action = "moveresize", args = {"move"} },
{ mods = {"logo"}, button = "middle", action = "togglefloating" },
{ mods = {"logo"}, button = "right", action = "moveresize", args = {"resize"} },
}
Update config.lua
r7