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# Experimental, off by default.
76# on: windows and the view move with springs, windows fade in and out as
77# they open, close or leave with the stash, the overview zooms its cards;
78# off: every change is instant and three-finger swipes act when the
79# fingers lift.
80# speed: slow, normal, fast, or a number from 0.1 (10x slower) to 10
81# (10x faster).
82animations = off
83animations.speed = normal
84# Focus indicator on the newly focused window: an animation (pulse or off)
85# of an effect (screen: a slight brightening), peaking at strength
86# (0.01 to 0.2; 0.04: black reaches about 10/255).
87focus.animation = pulse
88focus.effect = screen
89focus.strength = 0.04
90
91# Named workspaces are outside the numbered list and require a bind. The bind
92# shows one; pressing it again returns to the previous workspace.
93# max-columns and overflow override the layout.* values.
94# workspace.web.max-columns = 3
95# workspace.web.overflow = fixed
96#
97# Slots: column.N = <width>, <command>. neferwl starts each command in the
98# background and puts its first window in column N, without taking focus.
99# A closed slot stays empty until the workspace is shown again. Apps that
100# reuse a running instance need a new-instance flag. Widths need
101# overflow = scroll.
102# workspace.dev.monitor = DP-2
103# workspace.dev.column.1 = 67%, code --new-window
104# workspace.dev.column.2 = 33%, foot
105# bind.cmd+d = workspace dev
106
107# Displays (drm backend): WxH, WxH@Hz, preferred or off.
108# The first listed display that is connected and not off is used.
109# output.DP-2 = 5120x2160@165.058
110# output.HDMI-A-1 = off
111# Scale (HiDPI), 1 to 4, like 1.5 or 4/3. Default 1. scale-up and scale-down
112# step through the scales where the display divides into whole pixels and
113# save the result here.
114# output.DP-2.scale = 4/3
115
116render.direct-scanout = on
117# Games asking for tearing flip without waiting for vblank, and variable
118# refresh runs; both only while a fullscreen window is scanned out directly.
119render.tearing = on
120render.vrr = on
121
122# Run output and input threads with SCHED_RR when permitted.
123performance.realtime = on
124
125# log.level: debug, info, warn or error. log.debug: components or all.
126log.level = info
127log.debug =
128
129# Binds: bind.<keys> = <action>. Modifiers: cmd, shift, ctrl, alt, super.
130# code:N is a physical key (evdev code), the same key on every layout:
131# code:2 to code:10 are the digit row 1 to 9, code:12 and code:13 the two
132# keys right of 0 (- and = on US).
133# Keys are what your layout prints (cmd+é on AZERTY). Write = # and space
134# by name: cmd+equal, cmd+numbersign, cmd+space. `none` removes a default.
135# `spawn <command>` runs a program; arguments split on spaces, no shell
136# (pipes and variables go in a script: see "Running commands" in the README).
137bind.cmd+return = spawn-terminal
138bind.cmd+left = focus-column-left
139bind.cmd+right = focus-column-right
140bind.cmd+up = focus-window-up
141bind.cmd+down = focus-window-down
142bind.cmd+shift+left = move-column-left
143bind.cmd+shift+right = move-column-right
144# Vim keys: every arrow bind also works with h j k l.
145bind.cmd+h = focus-column-left
146bind.cmd+l = focus-column-right
147bind.cmd+k = focus-window-up
148bind.cmd+j = focus-window-down
149bind.cmd+shift+h = move-column-left
150bind.cmd+shift+l = move-column-right
151# A window alone in its column joins the neighbor column; a stacked one
152# leaves for a new column. A full fixed workspace stacks it into the
153# neighbor column instead, past the edge on the neighbor monitor.
154bind.cmd+bracketleft = consume-or-expel-window-left
155bind.cmd+bracketright = consume-or-expel-window-right
156# Reorder the focused window inside its column.
157bind.cmd+shift+up = move-window-up
158bind.cmd+shift+down = move-window-down
159bind.cmd+shift+k = move-window-up
160bind.cmd+shift+j = move-window-down
161# Resize by a step of the usable width or height: +N% or -N% (1-100).
162bind.cmd+alt+left = set-column-width -10%
163bind.cmd+alt+right = set-column-width +10%
164bind.cmd+alt+up = set-window-height -10%
165bind.cmd+alt+down = set-window-height +10%
166bind.cmd+alt+h = set-column-width -10%
167bind.cmd+alt+l = set-column-width +10%
168bind.cmd+alt+k = set-window-height -10%
169bind.cmd+alt+j = set-window-height +10%
170# A tile becomes a free floating window, or returns to its column.
171bind.cmd+shift+space = toggle-floating
172bind.cmd+r = cycle-column-width
173bind.cmd+f = maximize-column
174bind.cmd+shift+f = toggle-fullscreen
175bind.cmd+s = toggle-stash-visible
176bind.cmd+shift+s = toggle-window-stash
177bind.cmd+o = toggle-overview
178bind.cmd+q = close-window
179bind.ctrl+alt+backspace = quit
180bind.ctrl+cmd+space = spawn fuzzel
181
182# Workspaces stack vertically; numbers follow their order. An empty one always
183# waits below the last. cmd+up/down past the column edge also switch workspace.
184bind.cmd+pageup = focus-workspace-up
185bind.cmd+pagedown = focus-workspace-down
186# move-column-to-workspace moves the whole column; move-window-to-workspace
187# (N, -up, -down) moves only the focused window and has no default bind.
188bind.cmd+shift+pageup = move-column-to-workspace-up
189bind.cmd+shift+pagedown = move-column-to-workspace-down
190# Reorder workspaces: swap the current one with its neighbor.
191bind.cmd+ctrl+shift+up = move-workspace-up
192bind.cmd+ctrl+shift+down = move-workspace-down
193bind.cmd+ctrl+shift+k = move-workspace-up
194bind.cmd+ctrl+shift+j = move-workspace-down
195bind.cmd+code:2 = focus-workspace 1
196bind.cmd+code:3 = focus-workspace 2
197bind.cmd+code:4 = focus-workspace 3
198bind.cmd+code:5 = focus-workspace 4
199bind.cmd+code:6 = focus-workspace 5
200bind.cmd+code:7 = focus-workspace 6
201bind.cmd+code:8 = focus-workspace 7
202bind.cmd+code:9 = focus-workspace 8
203bind.cmd+code:10 = focus-workspace 9
204bind.cmd+shift+code:2 = move-column-to-workspace 1
205bind.cmd+shift+code:3 = move-column-to-workspace 2
206bind.cmd+shift+code:4 = move-column-to-workspace 3
207bind.cmd+shift+code:5 = move-column-to-workspace 4
208bind.cmd+shift+code:6 = move-column-to-workspace 5
209bind.cmd+shift+code:7 = move-column-to-workspace 6
210bind.cmd+shift+code:8 = move-column-to-workspace 7
211bind.cmd+shift+code:9 = move-column-to-workspace 8
212bind.cmd+shift+code:10 = move-column-to-workspace 9
213
214# Monitors, left to right: focus the neighbor, or move the workspace there.
215bind.cmd+ctrl+left = focus-monitor-left
216bind.cmd+ctrl+right = focus-monitor-right
217bind.cmd+ctrl+h = focus-monitor-left
218bind.cmd+ctrl+l = focus-monitor-right
219bind.cmd+ctrl+shift+left = move-workspace-to-monitor-left
220bind.cmd+ctrl+shift+right = move-workspace-to-monitor-right
221bind.cmd+ctrl+shift+h = move-workspace-to-monitor-left
222bind.cmd+ctrl+shift+l = move-workspace-to-monitor-right
223
224# Zoom: the whole display, live.
225bind.cmd+code:13 = scale-up
226bind.cmd+code:12 = scale-down
227
228# Media keys have no default. Bind them by their exact xkb keysym name
229# (case-sensitive; `wev` shows it) to your own tools:
230# bind.XF86AudioRaiseVolume = spawn wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+
231# bind.XF86AudioLowerVolume = spawn wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
232# bind.XF86AudioMute = spawn wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
233# bind.XF86AudioMicMute = spawn wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
234# bind.XF86MonBrightnessUp = spawn brightnessctl set +5%
235# bind.XF86MonBrightnessDown = spawn brightnessctl set 5%-
236# bind.XF86AudioPlay = spawn playerctl play-pause