##// END OF EJS Templates
Update config.lua
Tsuki -
r7:43e30f718f3e tip default
parent child Browse files
Show More
@@ -1,101 +1,109
1 1 sloppy_focus = true
2 2 bypass_surface_visibility = false
3 3 log_level = "error" -- "silent", "error", "info", "debug"
4 4
5 5 appearance = {
6 border_px = 2,
7 gaps = 10, -- 0 = no gaps. simple as.
6 -- inner border
7 inner_border_px = 3,
8 inner_border_color = 0x76532Bff,
9 inner_focus_color = 0xfde9caff,
10 inner_urgent_color = 0xff0000ff,
11 -- outer border
12 outer_border_px = 3,
13 outer_border_color = 0x44270aff,
14 outer_focus_color = 0x44270aff,
15 outer_urgent_color = 0x44270aff,
16 -- gaps
17 gaps = 10,
8 18 smart_gaps = false,
9
19 -- rootcol
10 20 root_color = 0x222222ff,
11 border_color = 0x00000000,
12 focus_color = 0xe8e8e8ff,
13 urgent_color = 0xff0000ff,
14
15 21 fullscreen_bg = 0x000000ff,
22 -- opacity
23 inactive_opacity = 1.0,
24 active_opacity = 1.0,
16 25 }
17 26
18 27
19 -- Note: the entire input section requires you to restart
20 -- the compositor once changed
21 28 input = {
22 29 repeat_rate = 50,
23 repeat_delay = 150,
30 repeat_delay = 225,
24 31 tap_to_click = true,
25 32 tap_and_drag = true,
26 33 drag_lock = true,
27 34 natural_scrolling = false,
28 35 disable_while_typing = true,
29 36 left_handed = false,
30 37 middle_button_emulation = false,
31 scroll_method = "2fg", -- "2fg", "edge", "button"
38 scroll_method = "2fg", -- "2fg", "edge", "button"
32 39 click_method = "button_areas", -- "button_areas", "clickfinger"
33 40 accel_profile = "adaptive", -- "adaptive", "flat"
34 41 accel_speed = 0.0,
35
36 layout = "us", -- "us", "de", "de,us", ...
37 -- variant = "nodeadkeys",
38 -- options = "grp:alt_shift_toggle",
42 layout = "us", -- "us", "de", "de,us", ...
43 -- variant = "nodeadkeys",
44 -- options = "grp:alt_shift_toggle",
39 45 }
40 46
41 47 rules = {
42 48 -- { app_id = "Gimp", floating = true, monitor = -1 },
43 49 -- { app_id = "firefox", tags = 1 << 8, floating = false, monitor = -1 },
44 50 }
45 51
46 52 monitors = {
47 53 -- catch-all rule; name = nil means match anything
48 { name = nil, mfact = 0.55, nmaster = 1, scale = 1.0,
49 layout = "dwindle", x = -1, y = -1 },
54 -- { name = nil, mfact = 0.55, nmaster = 1, scale = 1.0,
55 -- layout = "dwindle", x = -1, y = -1 },
50 56
51 57 -- HiDPI laptop example:
52 58 -- { name = "eDP-1", mfact = 0.5, nmaster = 1, scale = 2.0,
53 59 -- layout = "dwindle", x = -1, y = -1 },
54 60 }
55 61
56 62 -- autostart: it starts stuff in sequence
57 63 autostart = {
58 "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP",
59 "systemctl --user import-environment WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP",
60 "waybar",
64 -- "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP",
65 -- "swaybg -i ~/.config/swindle/walls/1.jpg",
66 -- "pgrep -x pipewire || pipewire",
67 -- "pgrep -x dunst || dunst",
61 68 }
62 69
63 70
64 71 keybinds = {
65 { mods = {"logo"}, key = "q", action = "spawn", args = {"alacritty"} },
72 { mods = {"logo"}, key = "q", action = "spawn", args = {"foot"} },
66 73 { mods = {"logo"}, key = "space", action = "spawn", args = {"wofi", "--show", "drun"} },
67 74 { mods = {"logo"}, key = "w", action = "killclient" },
68 75 { mods = {"logo"}, key = "v", action = "togglefloating" },
69 76 { mods = {"logo"}, key = "f", action = "togglefullscreen" },
70 77 { mods = {"logo"}, key = "g", action = "togglegaps" },
71 78 { mods = {"logo"}, key = "h", action = "focusdir", args = {"left"} },
72 79 { mods = {"logo"}, key = "j", action = "focusdir", args = {"down"} },
73 80 { mods = {"logo"}, key = "k", action = "focusdir", args = {"up"} },
74 81 { mods = {"logo"}, key = "l", action = "focusdir", args = {"right"} },
75 82 { mods = {"logo", "shift"}, key = "H", action = "swapdir", args = {"left"} },
76 83 { mods = {"logo", "shift"}, key = "J", action = "swapdir", args = {"down"} },
77 84 { mods = {"logo", "shift"}, key = "K", action = "swapdir", args = {"up"} },
78 85 { mods = {"logo", "shift"}, key = "L", action = "swapdir", args = {"right"} },
79 86 { mods = {"logo"}, key = "Tab", action = "view" },
80 87 { mods = {"logo"}, key = "0", action = "view", args = {"all"} },
81 88 { mods = {"logo"}, key = "comma", action = "focusmon", args = {"left"} },
82 89 { mods = {"logo"}, key = "period", action = "focusmon", args = {"right"} },
83 90 { mods = {"logo", "shift"}, key = "less", action = "tagmon", args = {"left"} },
84 91 { mods = {"logo", "shift"}, key = "greater", action = "tagmon", args = {"right"} },
85 92 { mods = {"logo", "shift"}, key = "e", action = "quit" },
86 93 }
87 94
88 95 for i = 1, 9 do
89 96 local key = tostring(i)
90 97 local mask = 1 << (i - 1)
91 98 table.insert(keybinds, { mods = {"logo"}, key = key, action = "view", args = {tostring(mask)} })
92 99 table.insert(keybinds, { mods = {"logo", "ctrl"}, key = key, action = "toggleview", args = {tostring(mask)} })
93 100 table.insert(keybinds, { mods = {"logo", "shift"}, key = key, action = "tag", args = {tostring(mask)} })
94 101 table.insert(keybinds, { mods = {"logo", "ctrl", "shift"}, key = key, action = "toggletag", args = {tostring(mask)} })
95 102 end
96 103
97 104 buttons = {
98 105 { mods = {"logo"}, button = "left", action = "moveresize", args = {"move"} },
99 106 { mods = {"logo"}, button = "middle", action = "togglefloating" },
100 107 { mods = {"logo"}, button = "right", action = "moveresize", args = {"resize"} },
101 108 }
109
General Comments 0
You need to be logged in to leave comments. Login now