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; separate several with `;` or
21# use one line each. Like spawn, a command runs without a shell: see
22# "Running commands" in docs/desktop.md.
23# Programs get WAYLAND_DISPLAY and NEFERWL_STATE.
24# startup = waybar; mako
25# startup = wl-paste --watch cliphist store
26
27background = #111111
28
29# Separator lines between tiled windows (tmux style), in logical pixels.
30# The lines along the focused window use active; width 0 disables them,
31# empty inactive draws only the focused lines. Floats get a full border.
32border.width = 2
33# Corner radius in logical pixels (0 to 64): floats always, tiles only with gaps.
34border.radius = 0
35border.active = #808080
36border.inactive = #111111
37
38# Black veil over tiles and lower layers when a float is visible (0 to 1).
39floating.dim = 0.3
40
41# on: toggle-stash-visible on an empty stash opens the terminal in it.
42stash.spawn-terminal = on
43
44layout.gaps = 0
45# Columns sharing the screen equally before the overflow applies: one cell is
46# a max-columns-th of the width, and columns, rules and slots are sized in
47# cells. A lone column fills the screen without separators.
48layout.max-columns = 2
49# Past max-columns: cascade starts a new band of columns below, scrolling
50# vertically; scroll opens columns to the right; fixed keeps everything on
51# screen, each new window splitting the newest one (spiral).
52layout.overflow = cascade
53
54# Touchpad. A three-finger swipe up or down slides between workspaces, left
55# or right scrolls the columns (cascade swaps the two axes). natural-scroll
56# = on moves the content with the fingers, for scroll and swipes. tap = on
57# clicks on a tap: one finger left, two right, three middle.
58touchpad.natural-scroll = off
59touchpad.tap = on
60# Pointer speed from -1 to 1; adaptive speeds up quick moves, flat does not.
61touchpad.accel-speed = 0
62touchpad.accel-profile = adaptive
63# left-handed = on swaps the left and right buttons.
64touchpad.left-handed = off
65# Two-finger scroll distance multiplier.
66touchpad.scroll-factor = 1
67
68# Mouse. natural-scroll = on moves the content with the wheel; speed and
69# profile work as for the touchpad.
70mouse.natural-scroll = off
71mouse.accel-speed = 0
72mouse.accel-profile = adaptive
73mouse.left-handed = off
74
75# Hide the pointer cursor after this long without motion (100ms to 1h, or
76# off); the next motion shows it.
77cursor.hide-after = 5s
78
79# on: moving a column or window to another workspace shows that workspace.
80focus.follow-move = off
81# Experimental, off by default.
82# on: windows and the view move with springs, windows fade in and out as
83# they open, close or leave with the stash, the overview zooms its cards;
84# off: every change is instant and three-finger swipes act when the
85# fingers lift.
86# speed: slow, normal, fast, or a number from 0.1 (10x slower) to 10
87# (10x faster).
88animations = off
89animations.speed = normal
90# Focus flash: a brief inner border on the window, column or output an
91# action just changed. Width in logical pixels (1 to 8), starting opacity
92# (0.1 to 1), fade duration (50ms to 1s, not scaled by animations.speed),
93# color #rrggbb (empty: border.active).
94focus.flash = on
95focus.flash-width = 2
96focus.flash-opacity = 0.6
97focus.flash-duration = 200ms
98focus.flash-color =
99# Hint mode is experimental and off: turn it on here (restart required).
100# hint.enable = off
101# Hint mode labels the links, URLs and buttons on the focused screen:
102# clickable (links, URLs and buttons) or links (links and URLs only).
103# hint.targets = clickable
104# Show the labels in screenshots and screencasts taken by clients.
105# hint.capture = off
106
107# Named workspaces are outside the numbered list and require a bind. The bind
108# shows one; pressing it again returns to the previous workspace.
109# max-columns and overflow override the layout.* values.
110# workspace.web.max-columns = 3
111# workspace.web.overflow = fixed
112#
113# Slots: column.N = <cells>, <command> (1-16). neferwl starts each command in the
114# background and puts its first window in column N, without taking focus.
115# A closed slot stays empty until the workspace is shown again. Apps that
116# reuse a running instance need a new-instance flag.
117# workspace.dev.monitor = DP-2
118# workspace.dev.column.1 = 2, code --new-window
119# workspace.dev.column.2 = 1, foot
120# bind.cmd+d = workspace dev
121
122# Window rules place an app's windows when they first open, without moving
123# the focus or the view. app-id is a regular expression matching the whole
124# app ID (see `neferwl state`); matching rules merge, a later one winning.
125# floating = on|off, workspace = N or a declared name, monitor = DP-2 or a
126# monitor key, width = cells (1-16).
127# rule.games.app-id = steam_app_.*
128# rule.games.workspace = 3
129# rule.games.monitor = DP-2
130# rule.calc.app-id = org\.gnome\.Calculator
131# rule.calc.floating = on
132
133# Displays (drm backend): WxH, WxH@Hz, preferred or off.
134# The first listed display that is connected and not off is used.
135# output.DP-2 = 5120x2160@165.058
136# output.HDMI-A-1 = off
137# Scale (HiDPI), 1 to 4, like 1.5 or 4/3. Default 1. scale-up and scale-down
138# step through the scales where the display divides into whole pixels and
139# save the result here.
140# output.DP-2.scale = 4/3
141
142render.direct-scanout = on
143# Games asking for tearing flip without waiting for vblank, and variable
144# refresh runs; both only while a fullscreen window is scanned out directly.
145render.tearing = on
146render.vrr = on
147
148# Run output and input threads with SCHED_RR when permitted.
149performance.realtime = on
150
151# log.level: debug, info, warn or error. log.debug: components or all.
152log.level = info
153log.debug =
154
155# Binds: bind.<keys> = <action>. Modifiers: cmd, shift, ctrl, alt, super.
156# code:N is a physical key (evdev code), the same key on every layout:
157# code:2 to code:10 are the digit row 1 to 9, code:12 and code:13 the two
158# keys right of 0 (- and = on US).
159# Keys are what your layout prints (cmd+é on AZERTY). Write = # and space
160# by name: cmd+equal, cmd+numbersign, cmd+space. `none` removes a default.
161# `spawn <command>` runs a program; arguments split on spaces, `;` starts
162# another command, no shell (pipes and variables go in a script: see
163# "Running commands" in docs/desktop.md).
164bind.cmd+return = spawn-terminal
165bind.cmd+left = focus-column-left
166bind.cmd+right = focus-column-right
167bind.cmd+up = focus-window-up
168bind.cmd+down = focus-window-down
169bind.cmd+shift+left = move-column-left
170bind.cmd+shift+right = move-column-right
171# Vim keys: every arrow bind also works with h j k l.
172bind.cmd+h = focus-column-left
173bind.cmd+l = focus-column-right
174bind.cmd+k = focus-window-up
175bind.cmd+j = focus-window-down
176bind.cmd+shift+h = move-column-left
177bind.cmd+shift+l = move-column-right
178# A window alone in its column joins the neighbor column; a stacked one
179# leaves for a new column. A full fixed workspace stacks it into the
180# neighbor column instead, past the edge on the neighbor monitor.
181bind.cmd+bracketleft = consume-or-expel-window-left
182bind.cmd+bracketright = consume-or-expel-window-right
183# Reorder the focused window inside its column.
184bind.cmd+shift+up = move-window-up
185bind.cmd+shift+down = move-window-down
186bind.cmd+shift+k = move-window-up
187bind.cmd+shift+j = move-window-down
188# Resize a column by N cells (+N or -N, 1-16), a window by a step of the
189# usable height (+N% or -N%, 1-100).
190bind.cmd+alt+left = set-column-width -1
191bind.cmd+alt+right = set-column-width +1
192bind.cmd+alt+up = set-window-height -10%
193bind.cmd+alt+down = set-window-height +10%
194bind.cmd+alt+h = set-column-width -1
195bind.cmd+alt+l = set-column-width +1
196bind.cmd+alt+k = set-window-height -10%
197bind.cmd+alt+j = set-window-height +10%
198# A tile becomes a free floating window, or returns to its column.
199bind.cmd+shift+space = toggle-floating
200# Grow the focused column by one cell, then back to equal shares.
201bind.cmd+r = cycle-column-width
202bind.cmd+f = maximize-column
203bind.cmd+shift+f = toggle-fullscreen
204bind.cmd+s = toggle-stash-visible
205bind.cmd+shift+s = toggle-window-stash
206bind.cmd+o = toggle-overview
207# Label the links and buttons on screen and click one by typing its label.
208# bind.cmd+g = hint
209bind.cmd+q = close-window
210bind.ctrl+alt+backspace = quit
211bind.ctrl+cmd+space = spawn fuzzel
212
213# Workspaces stack vertically (side by side with cascade); numbers follow
214# their order. An empty one always waits after the last. cmd+up/down past the
215# column edge also switch workspace.
216bind.cmd+pageup = focus-workspace-prev
217bind.cmd+pagedown = focus-workspace-next
218# move-column-to-workspace moves the whole column; move-window-to-workspace
219# (N, -prev, -next) moves only the focused window and has no default bind.
220bind.cmd+shift+pageup = move-column-to-workspace-prev
221bind.cmd+shift+pagedown = move-column-to-workspace-next
222# Reorder workspaces: swap the current one with its neighbor.
223bind.cmd+ctrl+shift+up = move-workspace-prev
224bind.cmd+ctrl+shift+down = move-workspace-next
225bind.cmd+ctrl+shift+k = move-workspace-prev
226bind.cmd+ctrl+shift+j = move-workspace-next
227bind.cmd+code:2 = focus-workspace 1
228bind.cmd+code:3 = focus-workspace 2
229bind.cmd+code:4 = focus-workspace 3
230bind.cmd+code:5 = focus-workspace 4
231bind.cmd+code:6 = focus-workspace 5
232bind.cmd+code:7 = focus-workspace 6
233bind.cmd+code:8 = focus-workspace 7
234bind.cmd+code:9 = focus-workspace 8
235bind.cmd+code:10 = focus-workspace 9
236bind.cmd+shift+code:2 = move-column-to-workspace 1
237bind.cmd+shift+code:3 = move-column-to-workspace 2
238bind.cmd+shift+code:4 = move-column-to-workspace 3
239bind.cmd+shift+code:5 = move-column-to-workspace 4
240bind.cmd+shift+code:6 = move-column-to-workspace 5
241bind.cmd+shift+code:7 = move-column-to-workspace 6
242bind.cmd+shift+code:8 = move-column-to-workspace 7
243bind.cmd+shift+code:9 = move-column-to-workspace 8
244bind.cmd+shift+code:10 = move-column-to-workspace 9
245
246# Monitors, left to right: focus the neighbor, or move the workspace there.
247bind.cmd+ctrl+left = focus-monitor-left
248bind.cmd+ctrl+right = focus-monitor-right
249bind.cmd+ctrl+h = focus-monitor-left
250bind.cmd+ctrl+l = focus-monitor-right
251bind.cmd+ctrl+shift+left = move-workspace-to-monitor-left
252bind.cmd+ctrl+shift+right = move-workspace-to-monitor-right
253bind.cmd+ctrl+shift+h = move-workspace-to-monitor-left
254bind.cmd+ctrl+shift+l = move-workspace-to-monitor-right
255
256# Zoom: the whole display, live.
257bind.cmd+code:13 = scale-up
258bind.cmd+code:12 = scale-down
259
260# Media keys have no default. Bind them by their exact xkb keysym name
261# (case-sensitive; `wev` shows it) to your own tools:
262# bind.XF86AudioRaiseVolume = spawn wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+
263# bind.XF86AudioLowerVolume = spawn wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
264# bind.XF86AudioMute = spawn wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
265# bind.XF86AudioMicMute = spawn wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
266# bind.XF86MonBrightnessUp = spawn brightnessctl set +5%
267# bind.XF86MonBrightnessDown = spawn brightnessctl set 5%-
268# bind.XF86AudioPlay = spawn playerctl play-pause