[xmonad] Resize NamedScratchpad with respect to screen size

Tony Zorman soliditsallgood at mailbox.org
Tue Mar 14 22:17:09 UTC 2023


On Tue, Mar 14 2023 18:07, Brandon Allbery wrote:
> On Tue, Mar 14, 2023 at 6:04 PM Alexander Iliev
> <sasoiliev+xmonad at mamul.org> wrote:
>> My question is - can I resize the scratchpad window I'm pulling into the
>> current workspace with respect to the size of the screen that this
>> workspace is displayed on?
>
> Currently there is no control over this. It's not impossible, but
> would require a `handleEventHook` to catch the `MapNotifyEvent` for
> the `NamedScratchpad` window and resize it.

Alternatively, it should also be possible to check the currently focused
window in a logHook and do this based on that.  See
`X.U.NamedScratchpad.nsHideOnFocusLoss` for inspiration.

-- 
Tony Zorman | https://tony-zorman.com/


More information about the xmonad mailing list