1# neferwl config: one `key = value` per line, # starts a comment.
2# Every value below is the default; a missing file means defaults.
3# Changes apply live. An invalid line logs a warning and keeps the default.
4
5# Keyboard (xkb names, e.g. layout = fr, options = caps:escape).
6keyboard.layout =
7keyboard.variant =
8keyboard.options =
9keyboard.repeat-rate = 25
10keyboard.repeat-delay = 600
11# Which modifier `cmd` means in binds: super, alt or ctrl.
12keyboard.cmd = super
13
14# Command for spawn-terminal: terminal, then $TERMINAL, then foot.
15# Automatically open once on the initial numbered workspace (first), on every
16# visible empty workspace (all), or never (off). --no-terminal overrides this.
17# terminal = foot
18terminal.auto-open = first
19
20# Commands run once when the session starts, one line each. Like spawn, a
21# command runs without a shell: see "Running commands" in the README.
22# Programs get WAYLAND_DISPLAY and NEFERWL_STATE.
23# startup = waybar
24# startup = wl-paste --watch cliphist store
25
26background = #111111
27
28# Separator lines between tiled windows (tmux style), in logical pixels.
29# The lines along the focused window use active; width 0 disables them,
30# empty inactive draws only the focused lines. Floats get a full border.
31border.width = 2
32border.active = #808080
33border.inactive = #111111
34
35# Black veil over tiles and lower layers when a float is visible (0 to 1).
36floating.dim = 0.3
37
38layout.gaps = 0
39# Columns sharing the screen equally before new ones scroll off to the right.
40# A lone column fills the screen without separators.
41layout.max-columns = 2
42# Past max-columns: scroll opens columns to the right; fixed keeps everything
43# on screen, each new window splitting the newest one (spiral).
44layout.overflow = scroll
45# cycle-column-width steps through these, then back to the equal share.
46layout.presets = 1/3, 1/2, 2/3, 1
47
48# Touchpad. A three-finger swipe up or down slides between workspaces, left
49# or right scrolls the columns. natural-scroll = on moves the content with
50# the fingers, for scroll and swipes. tap = on clicks on a tap: one finger
51# left, two right, three middle.
52touchpad.natural-scroll = off
53touchpad.tap = on
54# Pointer speed from -1 to 1; adaptive speeds up quick moves, flat does not.
55touchpad.accel-speed = 0
56touchpad.accel-profile = adaptive
57# left-handed = on swaps the left and right buttons.
58touchpad.left-handed = off
59# Two-finger scroll distance multiplier.
60touchpad.scroll-factor = 1
61
62# Mouse. natural-scroll = on moves the content with the wheel; speed and
63# profile work as for the touchpad.
64mouse.natural-scroll = off
65mouse.accel-speed = 0
66mouse.accel-profile = adaptive
67mouse.left-handed = off
68
69# Hide the pointer cursor after this long without motion (100ms to 1h, or
70# off); the next motion shows it.
71cursor.hide-after = 5s
72
73# on: moving a column or window to another workspace shows that workspace.
74focus.follow-move = off
75# Focus indicator on the newly focused window: an animation (pulse or off)
76# of an effect (screen: a slight brightening), peaking at strength
77# (0.01 to 0.2; 0.04: black reaches about 10/255).
78focus.animation = pulse
79focus.effect = screen
80focus.strength = 0.04
81
82# Named workspaces are outside the numbered list and require a bind. The bind
83# shows one; pressing it again returns to the previous workspace.
84# max-columns and overflow override the layout.* values.
85# workspace.web.max-columns = 3
86# workspace.web.overflow = fixed
87#
88# Slots: column.N = <width>, <command>. neferwl starts each command in the
89# background and puts its first window in column N, without taking focus.
90# A closed slot stays empty until the workspace is shown again. Apps that
91# reuse a running instance need a new-instance flag. Widths need
92# overflow = scroll.
93# workspace.dev.monitor = DP-2
94# workspace.dev.column.1 = 67%, code --new-window
95# workspace.dev.column.2 = 33%, foot
96# bind.cmd+d = workspace dev
97
98# Displays (drm backend): WxH, WxH@Hz, preferred or off.
99# The first listed display that is connected and not off is used.
100# output.DP-2 = 5120x2160@165.058
101# output.HDMI-A-1 = off
102# Scale (HiDPI), 1 to 4, like 1.5 or 4/3. Default 1. scale-up and scale-down
103# step through the scales where the display divides into whole pixels and
104# save the result here.
105# output.DP-2.scale = 4/3
106
107render.direct-scanout = on
108# Games asking for tearing flip without waiting for vblank, and variable
109# refresh runs; both only while a fullscreen window is scanned out directly.
110render.tearing = on
111render.vrr = on
112
113# Run output and input threads with SCHED_RR when permitted.
114performance.realtime = on
115
116# log.level: debug, info, warn or error. log.debug: components or all.
117log.level = info
118log.debug =
119
120# Binds: bind.<keys> = <action>. Modifiers: cmd, shift, ctrl, alt, super.
121# code:N is a physical key (evdev code), the same key on every layout:
122# code:2 to code:10 are the digit row 1 to 9, code:12 and code:13 the two
123# keys right of 0 (- and = on US).
124# Keys are what your layout prints (cmd+é on AZERTY). Write = # and space
125# by name: cmd+equal, cmd+numbersign, cmd+space. `none` removes a default.
126# `spawn <command>` runs a program; arguments split on spaces, no shell
127# (pipes and variables go in a script: see "Running commands" in the README).
128bind.cmd+return = spawn-terminal
129bind.cmd+left = focus-column-left
130bind.cmd+right = focus-column-right
131bind.cmd+up = focus-window-up
132bind.cmd+down = focus-window-down
133bind.cmd+shift+left = move-column-left
134bind.cmd+shift+right = move-column-right
135# Vim keys: every arrow bind also works with h j k l.
136bind.cmd+h = focus-column-left
137bind.cmd+l = focus-column-right
138bind.cmd+k = focus-window-up
139bind.cmd+j = focus-window-down
140bind.cmd+shift+h = move-column-left
141bind.cmd+shift+l = move-column-right
142# A window alone in its column joins the neighbor column; a stacked one
143# leaves for a new column. A full fixed workspace stacks it into the
144# neighbor column instead, past the edge on the neighbor monitor.
145bind.cmd+bracketleft = consume-or-expel-window-left
146bind.cmd+bracketright = consume-or-expel-window-right
147# Reorder the focused window inside its column.
148bind.cmd+shift+up = move-window-up
149bind.cmd+shift+down = move-window-down
150bind.cmd+shift+k = move-window-up
151bind.cmd+shift+j = move-window-down
152# Resize by a step of the usable width or height: +N% or -N% (1-100).
153bind.cmd+alt+left = set-column-width -10%
154bind.cmd+alt+right = set-column-width +10%
155bind.cmd+alt+up = set-window-height -10%
156bind.cmd+alt+down = set-window-height +10%
157bind.cmd+alt+h = set-column-width -10%
158bind.cmd+alt+l = set-column-width +10%
159bind.cmd+alt+k = set-window-height -10%
160bind.cmd+alt+j = set-window-height +10%
161# A tile becomes a free floating window, or returns to its column.
162bind.cmd+shift+space = toggle-floating
163bind.cmd+r = cycle-column-width
164bind.cmd+f = maximize-column
165bind.cmd+shift+f = toggle-fullscreen
166bind.cmd+s = toggle-stash-visible
167bind.cmd+shift+s = toggle-window-stash
168bind.cmd+o = toggle-overview
169bind.cmd+q = close-window
170bind.ctrl+alt+backspace = quit
171bind.ctrl+cmd+space = spawn fuzzel
172
173# Workspaces stack vertically; numbers follow their order. An empty one always
174# waits below the last. cmd+up/down past the column edge also switch workspace.
175bind.cmd+pageup = focus-workspace-up
176bind.cmd+pagedown = focus-workspace-down
177# move-column-to-workspace moves the whole column; move-window-to-workspace
178# (N, -up, -down) moves only the focused window and has no default bind.
179bind.cmd+shift+pageup = move-column-to-workspace-up
180bind.cmd+shift+pagedown = move-column-to-workspace-down
181# Reorder workspaces: swap the current one with its neighbor.
182bind.cmd+ctrl+shift+up = move-workspace-up
183bind.cmd+ctrl+shift+down = move-workspace-down
184bind.cmd+ctrl+shift+k = move-workspace-up
185bind.cmd+ctrl+shift+j = move-workspace-down
186bind.cmd+code:2 = focus-workspace 1
187bind.cmd+code:3 = focus-workspace 2
188bind.cmd+code:4 = focus-workspace 3
189bind.cmd+code:5 = focus-workspace 4
190bind.cmd+code:6 = focus-workspace 5
191bind.cmd+code:7 = focus-workspace 6
192bind.cmd+code:8 = focus-workspace 7
193bind.cmd+code:9 = focus-workspace 8
194bind.cmd+code:10 = focus-workspace 9
195bind.cmd+shift+code:2 = move-column-to-workspace 1
196bind.cmd+shift+code:3 = move-column-to-workspace 2
197bind.cmd+shift+code:4 = move-column-to-workspace 3
198bind.cmd+shift+code:5 = move-column-to-workspace 4
199bind.cmd+shift+code:6 = move-column-to-workspace 5
200bind.cmd+shift+code:7 = move-column-to-workspace 6
201bind.cmd+shift+code:8 = move-column-to-workspace 7
202bind.cmd+shift+code:9 = move-column-to-workspace 8
203bind.cmd+shift+code:10 = move-column-to-workspace 9
204
205# Monitors, left to right: focus the neighbor, or move the workspace there.
206bind.cmd+ctrl+left = focus-monitor-left
207bind.cmd+ctrl+right = focus-monitor-right
208bind.cmd+ctrl+h = focus-monitor-left
209bind.cmd+ctrl+l = focus-monitor-right
210bind.cmd+ctrl+shift+left = move-workspace-to-monitor-left
211bind.cmd+ctrl+shift+right = move-workspace-to-monitor-right
212bind.cmd+ctrl+shift+h = move-workspace-to-monitor-left
213bind.cmd+ctrl+shift+l = move-workspace-to-monitor-right
214
215# Zoom: the whole display, live.
216bind.cmd+code:13 = scale-up
217bind.cmd+code:12 = scale-down
218
219# Media keys have no default. Bind them by their exact xkb keysym name
220# (case-sensitive; `wev` shows it) to your own tools:
221# bind.XF86AudioRaiseVolume = spawn wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+
222# bind.XF86AudioLowerVolume = spawn wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
223# bind.XF86AudioMute = spawn wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
224# bind.XF86AudioMicMute = spawn wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
225# bind.XF86MonBrightnessUp = spawn brightnessctl set +5%
226# bind.XF86MonBrightnessDown = spawn brightnessctl set 5%-
227# bind.XF86AudioPlay = spawn playerctl play-pause