mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 10:14:14 +00:00
Compare commits
8 Commits
e45a0bc355
...
991236e902
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
991236e902 | ||
|
|
3819c290c3 | ||
|
|
982dcc4133 | ||
|
|
a035b0b9f3 | ||
|
|
30f5063474 | ||
|
|
1d08ade132 | ||
|
|
84245764e2 | ||
|
|
6ca87210d4 |
1
Makefile
1
Makefile
@ -61,6 +61,7 @@ dist: clean
|
|||||||
|
|
||||||
install: dwl
|
install: dwl
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
|
rm -f $(DESTDIR)$(PREFIX)/bin/dwl
|
||||||
cp -f dwl $(DESTDIR)$(PREFIX)/bin
|
cp -f dwl $(DESTDIR)$(PREFIX)/bin
|
||||||
chmod 755 $(DESTDIR)$(PREFIX)/bin/dwl
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/dwl
|
||||||
mkdir -p $(DESTDIR)$(MANDIR)/man1
|
mkdir -p $(DESTDIR)$(MANDIR)/man1
|
||||||
|
|||||||
@ -102,7 +102,7 @@ automatically, you will need to configure it prior to launching `dwl`, e.g.:
|
|||||||
|
|
||||||
Information about selected layouts, current window title, app-id, and
|
Information about selected layouts, current window title, app-id, and
|
||||||
selected/occupied/urgent tags is written to the stdin of the `-s` command (see
|
selected/occupied/urgent tags is written to the stdin of the `-s` command (see
|
||||||
the `printstatus()` function for details). This information can be used to
|
the `STATUS INFORMATION` section in `_dwl_(1)`). This information can be used to
|
||||||
populate an external status bar with a script that parses the
|
populate an external status bar with a script that parses the
|
||||||
information. Failing to read this information will cause dwl to block, so if you
|
information. Failing to read this information will cause dwl to block, so if you
|
||||||
do want to run a startup command that does not consume the status information,
|
do want to run a startup command that does not consume the status information,
|
||||||
|
|||||||
122
dwl.1
122
dwl.1
@ -37,7 +37,7 @@ starts a shell process running
|
|||||||
when starting.
|
when starting.
|
||||||
When stopping, it sends
|
When stopping, it sends
|
||||||
.Dv SIGTERM
|
.Dv SIGTERM
|
||||||
to the child process and waits for it to exit.
|
to the child process group and waits for it to exit.
|
||||||
.Pp
|
.Pp
|
||||||
Users are encouraged to customize
|
Users are encouraged to customize
|
||||||
.Nm
|
.Nm
|
||||||
@ -55,10 +55,10 @@ Move window to a single tag.
|
|||||||
Toggle tag for window.
|
Toggle tag for window.
|
||||||
.It Mod-p
|
.It Mod-p
|
||||||
Spawn
|
Spawn
|
||||||
.Nm wmenu-run .
|
.Xr wmenu-run 1 .
|
||||||
.It Mod-Shift-Return
|
.It Mod-Shift-Return
|
||||||
Spawn
|
Spawn
|
||||||
.Nm foot .
|
.Xr foot 1 .
|
||||||
.It Mod-[jk]
|
.It Mod-[jk]
|
||||||
Move focus down/up the stack.
|
Move focus down/up the stack.
|
||||||
.It Mod-[id]
|
.It Mod-[id]
|
||||||
@ -100,6 +100,112 @@ Quit
|
|||||||
.Nm .
|
.Nm .
|
||||||
.El
|
.El
|
||||||
These might differ depending on your keyboard layout.
|
These might differ depending on your keyboard layout.
|
||||||
|
.Ss Mouse commands
|
||||||
|
.Bl -tag -width 20n -offset indent -compact
|
||||||
|
.It Mod-Button1
|
||||||
|
Move focused window while dragging.
|
||||||
|
Tiled windows will be toggled to the floating state.
|
||||||
|
.It Mod-Button2
|
||||||
|
Toggle focused window between floating and tiled state.
|
||||||
|
.It Mod-Button3
|
||||||
|
.El
|
||||||
|
.Sh STATUS INFORMATION
|
||||||
|
.Nm
|
||||||
|
writes its status information to standard output.
|
||||||
|
If the
|
||||||
|
.Fl s
|
||||||
|
option is given, the status information is written to the standard input of the
|
||||||
|
child process instead.
|
||||||
|
.Pp
|
||||||
|
Said information has the following format:
|
||||||
|
.Bd -ragged -offset indent
|
||||||
|
.Ar <monitor>
|
||||||
|
.Ar <component>
|
||||||
|
.Ar <data>
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
|
.Bl -tag -width 11n -offset 0 -compact
|
||||||
|
.It Ar <monitor>
|
||||||
|
is the name given to the output.
|
||||||
|
.It Ar <component>
|
||||||
|
is one of (in order)
|
||||||
|
.Em title ,
|
||||||
|
.Em appid ,
|
||||||
|
.Em fullscreen ,
|
||||||
|
.Em floating ,
|
||||||
|
.Em selmon ,
|
||||||
|
.Em tags ,
|
||||||
|
.Em layout .
|
||||||
|
.It Ar <data>
|
||||||
|
changes depending on
|
||||||
|
.Ar <component> .
|
||||||
|
.Bl -tag -width 10n -compact
|
||||||
|
.It Em title
|
||||||
|
The title of the focused window on
|
||||||
|
.Ar <monitor>
|
||||||
|
or nothing if there is no focused window.
|
||||||
|
.It Em appid
|
||||||
|
The app_id of the focused window on
|
||||||
|
.Ar <monitor>
|
||||||
|
or nothing if there is no focused window.
|
||||||
|
.It Em fullscreen
|
||||||
|
Prints 1 if the focused window on
|
||||||
|
.Ar <monitor>
|
||||||
|
is in fullscreen state, otherwise prints 0. If there is no focused
|
||||||
|
window it prints nothing.
|
||||||
|
.It Em floating
|
||||||
|
Prints 1 if the focused window on
|
||||||
|
.Ar <monitor>
|
||||||
|
is in floating state, otherwise prints 0. If there is no focused
|
||||||
|
window it prints nothing.
|
||||||
|
.It Em selmon
|
||||||
|
Prints 1 if
|
||||||
|
.Ar <monitor>
|
||||||
|
is the selected monitor, otherwise prints 0.
|
||||||
|
.It Em tags
|
||||||
|
Prints four bitmasks in the following order:
|
||||||
|
.Bl -bullet -width 2n -compact
|
||||||
|
.It
|
||||||
|
Occupied tags of
|
||||||
|
.Ar <monitor> .
|
||||||
|
.It
|
||||||
|
Selected tags of
|
||||||
|
.Ar <monitor> .
|
||||||
|
.It
|
||||||
|
Tags of the focused window on
|
||||||
|
.Ar <monitor> .
|
||||||
|
.It
|
||||||
|
Tags where a window on
|
||||||
|
.Ar <monitor>
|
||||||
|
requested activation or has urgency hints.
|
||||||
|
.El
|
||||||
|
The bitmasks are 32-bit unsigned decimal integers.
|
||||||
|
.It Em layout
|
||||||
|
Prints the symbol of the current layout.
|
||||||
|
.El
|
||||||
|
.El
|
||||||
|
.Ss Examples
|
||||||
|
When there is a selected window:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
HDMI\-A\-1 title \(ti/source/repos/dwl > man \-l dwl.1
|
||||||
|
HDMI\-A\-1 appid footclient
|
||||||
|
HDMI\-A\-1 fullscreen 0
|
||||||
|
HDMI\-A\-1 floating 0
|
||||||
|
HDMI\-A\-1 selmon 1
|
||||||
|
HDMI\-A\-1 tags 271 4 4 0
|
||||||
|
HDMI\-A\-1 layout [T]
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
|
When there is no selected window:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
HDMI\-A\-1 title
|
||||||
|
HDMI\-A\-1 appid
|
||||||
|
HDMI\-A\-1 fullscreen
|
||||||
|
HDMI\-A\-1 floating
|
||||||
|
HDMI\-A\-1 selmon 1
|
||||||
|
HDMI\-A\-1 tags 271 512 0 0
|
||||||
|
HDMI\-A\-1 layout [T]
|
||||||
|
.Ed
|
||||||
.Sh ENVIRONMENT
|
.Sh ENVIRONMENT
|
||||||
These environment variables are used by
|
These environment variables are used by
|
||||||
.Nm :
|
.Nm :
|
||||||
@ -142,17 +248,9 @@ Start
|
|||||||
with s6 in the background:
|
with s6 in the background:
|
||||||
.Dl dwl \-s \(aqs6\-svscan <&\-\(aq
|
.Dl dwl \-s \(aqs6\-svscan <&\-\(aq
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
|
.Xr dwm 1 ,
|
||||||
.Xr foot 1 ,
|
.Xr foot 1 ,
|
||||||
.Xr wmenu 1 ,
|
.Xr wmenu 1 ,
|
||||||
.Xr dwm 1 ,
|
|
||||||
.Xr xkeyboard-config 7
|
.Xr xkeyboard-config 7
|
||||||
.Sh CAVEATS
|
|
||||||
The child process's standard input is connected with a pipe to
|
|
||||||
.Nm .
|
|
||||||
If the child process neither reads from the pipe nor closes its
|
|
||||||
standard input,
|
|
||||||
.Nm
|
|
||||||
will freeze after a while due to it blocking when writing to the full
|
|
||||||
pipe buffer.
|
|
||||||
.Sh BUGS
|
.Sh BUGS
|
||||||
All of them.
|
All of them.
|
||||||
|
|||||||
6
dwl.c
6
dwl.c
@ -2082,6 +2082,7 @@ powermgrsetmode(struct wl_listener *listener, void *data)
|
|||||||
wlr_output_commit_state(m->wlr_output, &state);
|
wlr_output_commit_state(m->wlr_output, &state);
|
||||||
|
|
||||||
m->asleep = !event->mode;
|
m->asleep = !event->mode;
|
||||||
|
updatemons(NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -2436,7 +2437,8 @@ setup(void)
|
|||||||
wlr_linux_dmabuf_v1_create_with_renderer(dpy, 5, drw));
|
wlr_linux_dmabuf_v1_create_with_renderer(dpy, 5, drw));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((drm_fd = wlr_renderer_get_drm_fd(drw)) >= 0 && drw->features.timeline)
|
if ((drm_fd = wlr_renderer_get_drm_fd(drw)) >= 0 && drw->features.timeline
|
||||||
|
&& backend->features.timeline)
|
||||||
wlr_linux_drm_syncobj_manager_v1_create(dpy, 1, drm_fd);
|
wlr_linux_drm_syncobj_manager_v1_create(dpy, 1, drm_fd);
|
||||||
|
|
||||||
/* Autocreates an allocator for us.
|
/* Autocreates an allocator for us.
|
||||||
@ -2462,7 +2464,7 @@ setup(void)
|
|||||||
wlr_viewporter_create(dpy);
|
wlr_viewporter_create(dpy);
|
||||||
wlr_single_pixel_buffer_manager_v1_create(dpy);
|
wlr_single_pixel_buffer_manager_v1_create(dpy);
|
||||||
wlr_fractional_scale_manager_v1_create(dpy, 1);
|
wlr_fractional_scale_manager_v1_create(dpy, 1);
|
||||||
wlr_presentation_create(dpy, backend);
|
wlr_presentation_create(dpy, backend, 2);
|
||||||
wlr_alpha_modifier_v1_create(dpy);
|
wlr_alpha_modifier_v1_create(dpy);
|
||||||
|
|
||||||
/* Initializes the interface used to implement urgency hints */
|
/* Initializes the interface used to implement urgency hints */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user