nixos-dotfiles

nixos-dotfiles

https://git.tonybtw.com/nixos-dotfiles.git git://git.tonybtw.com/nixos-dotfiles.git
5,629 bytes raw
1
.Dd January 8, 2021
2
.Dt DWL 1
3
.Os
4
.Sh NAME
5
.Nm dwl
6
.Nd dwm for Wayland
7
.Sh SYNOPSIS
8
.Nm
9
.Op Fl v
10
.Op Fl d
11
.Op Fl s Ar startup command
12
.Sh DESCRIPTION
13
.Nm
14
is a Wayland compositor based on wlroots.
15
It is intended to fill the same space in the Wayland world that
16
.Nm dwm
17
does for X11.
18
.Pp
19
When given the
20
.Fl v
21
option,
22
.Nm
23
writes its name and version to standard error and exits unsuccessfully.
24
.Pp
25
When given the
26
.Fl d
27
option,
28
.Nm
29
enables full wlroots logging, including debug information.
30
.Pp
31
When given the
32
.Fl s
33
option,
34
.Nm
35
starts a shell process running
36
.Ar command
37
when starting.
38
When stopping, it sends
39
.Dv SIGTERM
40
to the child process group and waits for it to exit.
41
.Pp
42
Users are encouraged to customize
43
.Nm
44
by editing the sources, in particular
45
.Pa config.h .
46
The default key bindings are as follows:
47
.Bl -tag -width 20n -offset indent -compact
48
.It Mod-[1-9]
49
Show only all windows with a tag.
50
.It Mod-Ctrl-[1-9]
51
Show all windows with a tag.
52
.It Mod-Shift-[1-9]
53
Move window to a single tag.
54
.It Mod-Ctrl-Shift-[1-9]
55
Toggle tag for window.
56
.It Mod-p
57
Spawn
58
.Xr wmenu-run 1 .
59
.It Mod-Shift-Return
60
Spawn
61
.Xr foot 1 .
62
.It Mod-[jk]
63
Move focus down/up the stack.
64
.It Mod-[id]
65
Increase/decrease number of windows in master area.
66
.It Mod-[hl]
67
Decrease/increase master area.
68
.It Mod-Return
69
Move window on top of stack or switch top of stack with second window.
70
.It Mod-Tab
71
Show only all windows with previous tag.
72
.It Mod-Shift-c
73
Close window.
74
.It Mod-t
75
Switch to tabbed layout.
76
.It Mod-f
77
Switch to floating layout.
78
.It Mod-m
79
Switch to monocle layout.
80
.It Mod-Space
81
Switch to previous layout.
82
.It Mod-Shift-Space
83
Toggle floating state of window.
84
.It Mod-e
85
Toggle fullscreen state of window.
86
.It Mod-0
87
Show all windows.
88
.It Mod-Shift-0
89
Set all tags for window.
90
.It Mod-,
91
Move focus to previous monitor.
92
.It Mod-.
93
Move focus to next monitor.
94
.It Mod-Shift-,
95
Move window to previous monitor.
96
.It Mod-Shift-.
97
Move window to next monitor.
98
.It Mod-Shift-q
99
Quit
100
.Nm .
101
.El
102
These might differ depending on your keyboard layout.
103
.Ss Mouse commands
104
.Bl -tag -width 20n -offset indent -compact
105
.It Mod-Button1
106
Move focused window while dragging.
107
Tiled windows will be toggled to the floating state.
108
.It Mod-Button2
109
Toggle focused window between floating and tiled state.
110
.It Mod-Button3
111
Resize focused window while dragging.
112
Tiled windows will be toggled to the floating state.
113
.El
114
.Sh STATUS INFORMATION
115
.Nm
116
writes its status information to standard output.
117
If the
118
.Fl s
119
option is given, the status information is written to the standard input of the
120
child process instead.
121
.Pp
122
Said information has the following format:
123
.Bd -ragged -offset indent
124
.Ar <monitor>
125
.Ar <component>
126
.Ar <data>
127
.Ed
128
.Pp
129
.Bl -tag -width 11n -offset 0 -compact
130
.It Ar <monitor>
131
is the name given to the output.
132
.It Ar <component>
133
is one of (in order)
134
.Em title ,
135
.Em appid ,
136
.Em fullscreen ,
137
.Em floating ,
138
.Em selmon ,
139
.Em tags ,
140
.Em layout .
141
.It Ar <data>
142
changes depending on
143
.Ar <component> .
144
.Bl -tag -width 10n -compact
145
.It Em title
146
The title of the focused window on
147
.Ar <monitor>
148
or nothing if there is no focused window.
149
.It Em appid
150
The app_id of the focused window on
151
.Ar <monitor>
152
or nothing if there is no focused window.
153
.It Em fullscreen
154
Prints 1 if the focused window on
155
.Ar <monitor>
156
is in fullscreen state, otherwise prints 0. If there is no focused
157
window it prints nothing.
158
.It Em floating
159
Prints 1 if the focused window on
160
.Ar <monitor>
161
is in floating state, otherwise prints 0. If there is no focused
162
window it prints nothing.
163
.It Em selmon
164
Prints 1 if
165
.Ar <monitor>
166
is the selected monitor, otherwise prints 0.
167
.It Em tags
168
Prints four bitmasks in the following order:
169
.Bl -bullet -width 2n -compact
170
.It
171
Occupied tags of
172
.Ar <monitor> .
173
.It
174
Selected tags of
175
.Ar <monitor> .
176
.It
177
Tags of the focused window on
178
.Ar <monitor> .
179
.It
180
Tags where a window on
181
.Ar <monitor>
182
requested activation or has urgency hints.
183
.El
184
The bitmasks are 32-bit unsigned decimal integers.
185
.It Em layout
186
Prints the symbol of the current layout.
187
.El
188
.El
189
.Ss Examples
190
When there is a selected window:
191
.Bd -literal -offset indent
192
HDMI\-A\-1 title \(ti/source/repos/dwl > man \-l dwl.1
193
HDMI\-A\-1 appid footclient
194
HDMI\-A\-1 fullscreen 0
195
HDMI\-A\-1 floating 0
196
HDMI\-A\-1 selmon 1
197
HDMI\-A\-1 tags 271 4 4 0
198
HDMI\-A\-1 layout [T]
199
.Ed
200
.Pp
201
When there is no selected window:
202
.Bd -literal -offset indent
203
HDMI\-A\-1 title
204
HDMI\-A\-1 appid
205
HDMI\-A\-1 fullscreen
206
HDMI\-A\-1 floating
207
HDMI\-A\-1 selmon 1
208
HDMI\-A\-1 tags 271 512 0 0
209
HDMI\-A\-1 layout [T]
210
.Ed
211
.Sh ENVIRONMENT
212
These environment variables are used by
213
.Nm :
214
.Bl -tag -width XDG_RUNTIME_DIR
215
.It Ev XDG_RUNTIME_DIR
216
A directory where temporary user files, such as the Wayland socket,
217
are stored.
218
.It Ev XDG_CONFIG_DIR
219
A directory containing configuration of various programs and
220
libraries, including libxkbcommon.
221
.It Ev DISPLAY , WAYLAND_DISPLAY , WAYLAND_SOCKET
222
Tell how to connect to an underlying X11 or Wayland server.
223
.It Ev WLR_*
224
Various variables specific to wlroots.
225
.It Ev XKB_* , XLOCALEDIR , XCOMPOSEFILE
226
Various variables specific to libxkbcommon.
227
.It Ev XCURSOR_PATH
228
List of directories to search for XCursor themes in.
229
.It Ev HOME
230
A directory where there are always dear files there for you.
231
Waiting for you to clean them up.
232
.El
233
.Pp
234
These are set by
235
.Nm :
236
.Bl -tag -width WAYLAND_DISPLAY
237
.It Ev WAYLAND_DISPLAY
238
Tell how to connect to
239
.Nm .
240
.It Ev DISPLAY
241
If using
242
.Nm Xwayland ,
243
tell how to connect to the
244
.Nm Xwayland
245
server.
246
.El
247
.Sh EXAMPLES
248
Start
249
.Nm
250
with s6 in the background:
251
.Dl dwl \-s \(aqs6\-svscan <&\-\(aq
252
.Sh SEE ALSO
253
.Xr dwm 1 ,
254
.Xr foot 1 ,
255
.Xr wmenu 1 ,
256
.Xr xkeyboard-config 7
257
.Sh BUGS
258
All of them.