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