Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Guidance on how to implement a toggle-able workspace like scratchpads. #390

Open
4 tasks
ayham-1 opened this issue Feb 22, 2023 · 3 comments
Open
4 tasks
Labels
A: enhancement New feature or request

Comments

@ayham-1
Copy link

ayham-1 commented Feb 22, 2023

There is a similar feature in Xmonad, where a workspace is toggle-able and one can add applications to it.

How would that be achieved in dwl?

Features for the patch:

  • toggle a hidden workspace
  • workspace should have independent layout
  • workspace should be hidden
  • workspace should be configured to have a region of screen, center, half-screen, etc.
@ayham-1 ayham-1 added the A: enhancement New feature or request label Feb 22, 2023
@krypciak
Copy link
Contributor

If you want scratchpads, check out this patch:
https://github.com/djpohly/dwl/wiki/namedscratchpads

@podit
Copy link

podit commented May 10, 2023

i use the namedscratchpads patch and it works well enough, with two caveats.

  • the first is that once spawned the scratchpad is tied to the output focused at that time, which in my multi-monitor setup requires some discipline.
  • the second is that when toggling outputs the scratchpad (and any floating window) is moved(?) such that it no longer appears, though it remains interactable and so can be exited. which again means discipline is required when using it. I wonder if ouputPowerManagement might fix this, though i have stability issues using it and so have not tested this.

a potential optimisation of the behaviour of namedscratchpads could be to allow for behaviours to be set per output, such that the behaviour of the scratchpad can be made more reliable?

it is also worth noting that the alwayscenter patch is reqired to have the scratchpad and any floating window, spawn in the middle of the selected output

@fictitiousexistence
Copy link

@ayham-1
I've never used dwm and am starting to just get into dwl.
I'm also looking for a better scratchpad.

Does this patch from dwm help with anything? https://dwm.suckless.org/patches/dynamicscratchpads/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants