Compare commits

..

8 Commits

Author SHA1 Message Date
Leonardo Hernández Hernández
991236e902
document status output 2024-12-30 23:01:32 -06:00
Leonardo Hernández Hernández
3819c290c3
Use a subsection for mouse commands
also add missing ".El", s/Toggles/Toggle/ in second command and add newlines
after a full stop
2024-12-30 22:49:40 -06:00
Leonardo Hernández Hernández
982dcc4133
document mouse button actions
[sevz: commit message is mine. The content was written by scottro11 and shared
in https://codeberg.org/dwl/dwl/issues/697]

Closes: https://codeberg.org/dwl/dwl/issues/697
2024-12-30 22:41:07 -06:00
Leonardo Hernández Hernández
a035b0b9f3
drop CAVEATS section from the man page
Since 71f11e6cf63289d51f152469a0da81a85fe2608c it is not longer the case
2024-12-30 22:41:07 -06:00
Leonardo Hernández Hernández
30f5063474
manually call updatemons in powermgrsetmode()
Fixes: https://codeberg.org/dwl/dwl/issues/713
2024-12-10 22:49:09 -06:00
Leonardo Hernández Hernández
1d08ade132
remove binary before copying to destination
Since Linux 6.11 is possible overwrite a running executable, possibly making it
crash.

Thanks to: movq42rax
Fixes: https://codeberg.org/dwl/dwl/issues/709
References: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2a010c412853
References: https://lore.kernel.org/stable/CACKH++YAtEMYu2nTLUyfmxZoGO37fqogKMDkBpddmNaz5HE6ng@mail.gmail.com/T/#u
2024-11-15 00:26:51 -06:00
Leonardo Hernández Hernández
84245764e2
specify version for presentation-time (wlroots!4858)
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4858
2024-10-27 20:37:15 -06:00
Leonardo Hernández Hernández
6ca87210d4
check if the backend supports explicit sync before creating the object (wlroots!4848)
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4848
2024-10-27 20:37:15 -06:00
4 changed files with 57 additions and 55 deletions

View File

@ -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

View File

@ -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 `STATUS INFORMATION` section in `dwl(1)`). 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,

103
dwl.1
View File

@ -103,84 +103,83 @@ These might differ depending on your keyboard layout.
.Ss Mouse commands .Ss Mouse commands
.Bl -tag -width 20n -offset indent -compact .Bl -tag -width 20n -offset indent -compact
.It Mod-Button1 .It Mod-Button1
Move focused window while dragging. Tiled windows will be toggled to the floating state. Move focused window while dragging.
Tiled windows will be toggled to the floating state.
.It Mod-Button2 .It Mod-Button2
Toggles focused window between floating and tiled state. Toggle focused window between floating and tiled state.
.It Mod-Button3 .It Mod-Button3
Resize focused window while dragging. Tiled windows will be toggled to the floating state. .El
.Sh STATUS INFORMATION .Sh STATUS INFORMATION
.Nm .Nm
prints its status information to standard output. When the -s option is writes its status information to standard output.
given then the status information is printed to the standard input of the child If the
process. .Fl s
option is given, the status information is written to the standard input of the
child process instead.
.Pp .Pp
Said information has the following format: Said information has the following format:
.Bd -ragged -offset indent .Bd -ragged -offset indent
.Aq Em monitor .Ar <monitor>
.Aq Em component .Ar <component>
.Aq Em data .Ar <data>
.Ed .Ed
.Pp .Pp
.Bl -tag -width 11n -offset 0 -compact .Bl -tag -width 11n -offset 0 -compact
.It Aq Em monitor .It Ar <monitor>
is the name given to the output. is the name given to the output.
.It Aq Em component .It Ar <component>
is one of (in order) is one of (in order)
.Em title .Em title ,
.Em appid .Em appid ,
.Em fullscreen .Em fullscreen ,
.Em floating .Em floating ,
.Em selmon .Em selmon ,
.Em tags .Em tags ,
.Em layout .Em layout .
\&. .It Ar <data>
.It Aq Em data changes depending on
changes depending of .Ar <component> .
.Aq Em component .Bl -tag -width 10n -compact
.Bl -tag -width fullscreen -compact
.It Em title .It Em title
The title of the focused window on The title of the focused window on
.Aq Em monitor .Ar <monitor>
or nothing if there is no focused window. or nothing if there is no focused window.
.It Em appid .It Em appid
The app_id of the focused window on The app_id of the focused window on
.Aq Em monitor .Ar <monitor>
or nothing if there is no focused window. or nothing if there is no focused window.
.It Em fullscreen .It Em fullscreen
Prints 1 if the focused window on Prints 1 if the focused window on
.Aq Em monitor .Ar <monitor>
is in fullscreen state, otherwise prints 0. If there is no focused is in fullscreen state, otherwise prints 0. If there is no focused
window it prints nothing. window it prints nothing.
.It Em floating .It Em floating
Prints 1 if the focused window on Prints 1 if the focused window on
.Aq Em monitor .Ar <monitor>
is in floating state, otherwise prints 0. If there is no focused is in floating state, otherwise prints 0. If there is no focused
window it prints nothing. window it prints nothing.
.It Em selmon .It Em selmon
Prints 1 if Prints 1 if
.Aq Em monitor .Ar <monitor>
is the selected monitor, otherwise prints 0. is the selected monitor, otherwise prints 0.
.It Em tags .It Em tags
Prints four bitmasks in the following order: Prints four bitmasks in the following order:
.Bl -bullet -width 2n -compact .Bl -bullet -width 2n -compact
.It .It
Occupied tags of Occupied tags of
.Aq Em monitor .Ar <monitor> .
\&.
.It .It
Selected tags of Selected tags of
.Aq Em monitor .Ar <monitor> .
\&.
.It .It
Tags of the focused window on Tags of the focused window on
.Aq Em monitor .Ar <monitor> .
\&.
.It .It
Tags where a where a window on Tags where a window on
.Aq Em monitor .Ar <monitor>
requested activation or has urgency hints. requested activation or has urgency hints.
.El .El
The bitmasks are a 32-bit unsigned integer. The bitmasks are 32-bit unsigned decimal integers.
.It Em layout .It Em layout
Prints the symbol of the current layout. Prints the symbol of the current layout.
.El .El
@ -188,24 +187,24 @@ Prints the symbol of the current layout.
.Ss Examples .Ss Examples
When there is a selected window: When there is a selected window:
.Bd -literal -offset indent .Bd -literal -offset indent
HDMI-A-1 title ~/source/repos/dwl > man -l dwl.1 HDMI\-A\-1 title \(ti/source/repos/dwl > man \-l dwl.1
HDMI-A-1 appid footclient HDMI\-A\-1 appid footclient
HDMI-A-1 fullscreen 0 HDMI\-A\-1 fullscreen 0
HDMI-A-1 floating 0 HDMI\-A\-1 floating 0
HDMI-A-1 selmon 1 HDMI\-A\-1 selmon 1
HDMI-A-1 tags 271 4 4 0 HDMI\-A\-1 tags 271 4 4 0
HDMI-A-1 layout [T] HDMI\-A\-1 layout [T]
.Ed .Ed
.Pp .Pp
When there is no selected window: When there is no selected window:
.Bd -literal -offset indent .Bd -literal -offset indent
HDMI-A-1 title HDMI\-A\-1 title
HDMI-A-1 appid HDMI\-A\-1 appid
HDMI-A-1 fullscreen HDMI\-A\-1 fullscreen
HDMI-A-1 floating HDMI\-A\-1 floating
HDMI-A-1 selmon 1 HDMI\-A\-1 selmon 1
HDMI-A-1 tags 271 512 0 0 HDMI\-A\-1 tags 271 512 0 0
HDMI-A-1 layout [T] HDMI\-A\-1 layout [T]
.Ed .Ed
.Sh ENVIRONMENT .Sh ENVIRONMENT
These environment variables are used by These environment variables are used by
@ -249,9 +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 BUGS .Sh BUGS
All of them. All of them.

6
dwl.c
View File

@ -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 */