Commit Graph

7 Commits (master)

Author SHA1 Message Date
bakkeby 99f6f1b52c Adding focusfollowmouse patch ref. #364 11 months ago
pepper-jelly 0733c39e0c sed source files to end with 1 new line 3 years ago
bakkeby 76292ba325 scratchpads: enhancing scratchpad by allowing arbitrary clients to be added to (and removed from) each scratchpad area 4 years ago
bakkeby b3cb874ff5 scratchpads: allow a hidden scratchpad to be revealed when toggling scratch and reduce size of window if too large to be displayed when switching monitors 4 years ago
bakkeby f4f5ecab75 Scratchpads improvement (multi-monitor support) 4 years ago
bakkeby f9a001dee7 [dwm][PATCH] Multiple scratchpads
This patch enables multiple scratchpads, each with one assigned window.
This enables the same scratchpad workflow that you have in i3.

Scratchpads are implemented as special tags, whose mask does not
apply to new spawned windows. To assign a window to a scratchpad you
have to set up a rule, as you do with regular tags.

Windows tagged with scratchpad tags can be set floating or not in the
rules array. Most users would probably want them floating (i3 style),
but having them tiled does also perfectly work and might fit better the
DWM approach. In case they are set floating, the patch moves them to the
center of the screen whenever the are shown. The patch can easily be
modified to make this last feature configurable in the rules array (see
the center patch).

The togglescratch function, borrowed from the previous scratchpad patch
and slightly modified, can be used to spawn a registered scratchpad
process or toggle its view. This function looks for a window tagged on
the selected scratchpad. If it is found its view is toggled. If it is
not found the corresponding registered command is spawned. The
config.def.h shows three examples of its use to spawn a terminal in the
first scratchpad tag, a second terminal running ranger on the second
scratchpad tag and the keepassxc application to manage passwords on a
third scratchpad tag.

If you prefer to spawn your scratchpad applications from the startup
script, you might opt for binding keys to toggleview instead, as
scratchpads are just special tags (you may even extend the TAGKEYS macro
to generalize the key bindings).
4 years ago
bakkeby 2eb8bcdf15 Adding scratchpad patch 5 years ago