Update config.lua

This commit is contained in:
Tsuki 2026-08-23 09:25:49 +08:00
parent b0972b6add
commit 50fc8532be

View file

@ -3,24 +3,31 @@ bypass_surface_visibility = false
log_level = "error" -- "silent", "error", "info", "debug" log_level = "error" -- "silent", "error", "info", "debug"
appearance = { appearance = {
border_px = 2, -- inner border
gaps = 10, -- 0 = no gaps. simple as. 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,
smart_gaps = false, smart_gaps = false,
-- rootcol
root_color = 0x222222ff, root_color = 0x222222ff,
border_color = 0x00000000,
focus_color = 0xe8e8e8ff,
urgent_color = 0xff0000ff,
fullscreen_bg = 0x000000ff, fullscreen_bg = 0x000000ff,
-- opacity
inactive_opacity = 1.0,
active_opacity = 1.0,
} }
-- Note: the entire input section requires you to restart
-- the compositor once changed
input = { input = {
repeat_rate = 50, repeat_rate = 50,
repeat_delay = 150, repeat_delay = 225,
tap_to_click = true, tap_to_click = true,
tap_and_drag = true, tap_and_drag = true,
drag_lock = true, drag_lock = true,
@ -32,7 +39,6 @@ input = {
click_method = "button_areas", -- "button_areas", "clickfinger" click_method = "button_areas", -- "button_areas", "clickfinger"
accel_profile = "adaptive", -- "adaptive", "flat" accel_profile = "adaptive", -- "adaptive", "flat"
accel_speed = 0.0, accel_speed = 0.0,
layout = "us", -- "us", "de", "de,us", ... layout = "us", -- "us", "de", "de,us", ...
-- variant = "nodeadkeys", -- variant = "nodeadkeys",
-- options = "grp:alt_shift_toggle", -- options = "grp:alt_shift_toggle",
@ -45,8 +51,8 @@ rules = {
monitors = { monitors = {
-- catch-all rule; name = nil means match anything -- catch-all rule; name = nil means match anything
{ name = nil, mfact = 0.55, nmaster = 1, scale = 1.0, -- { name = nil, mfact = 0.55, nmaster = 1, scale = 1.0,
layout = "dwindle", x = -1, y = -1 }, -- layout = "dwindle", x = -1, y = -1 },
-- HiDPI laptop example: -- HiDPI laptop example:
-- { name = "eDP-1", mfact = 0.5, nmaster = 1, scale = 2.0, -- { name = "eDP-1", mfact = 0.5, nmaster = 1, scale = 2.0,
@ -55,14 +61,15 @@ monitors = {
-- autostart: it starts stuff in sequence -- autostart: it starts stuff in sequence
autostart = { autostart = {
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP", -- "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP",
"systemctl --user import-environment WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP", -- "swaybg -i ~/.config/swindle/walls/1.jpg",
"waybar", -- "pgrep -x pipewire || pipewire",
-- "pgrep -x dunst || dunst",
} }
keybinds = { keybinds = {
{ mods = {"logo"}, key = "q", action = "spawn", args = {"alacritty"} }, { mods = {"logo"}, key = "q", action = "spawn", args = {"foot"} },
{ mods = {"logo"}, key = "space", action = "spawn", args = {"wofi", "--show", "drun"} }, { mods = {"logo"}, key = "space", action = "spawn", args = {"wofi", "--show", "drun"} },
{ mods = {"logo"}, key = "w", action = "killclient" }, { mods = {"logo"}, key = "w", action = "killclient" },
{ mods = {"logo"}, key = "v", action = "togglefloating" }, { mods = {"logo"}, key = "v", action = "togglefloating" },
@ -99,3 +106,4 @@ buttons = {
{ mods = {"logo"}, button = "middle", action = "togglefloating" }, { mods = {"logo"}, button = "middle", action = "togglefloating" },
{ mods = {"logo"}, button = "right", action = "moveresize", args = {"resize"} }, { mods = {"logo"}, button = "right", action = "moveresize", args = {"resize"} },
} }