Browse Source

xmonad: notes on non-floating scratchpad windows

Short version:  You can do it, but it's kind of a bad idea, at least the
way I'm using them.
master
Brennen Bearnes 1 year ago
parent
commit
8b0498a827
1 changed files with 14 additions and 2 deletions
  1. +14
    -2
      home/.xmonad/xmonad.hs

+ 14
- 2
home/.xmonad/xmonad.hs View File

@ -83,8 +83,20 @@ myManageHook = composeAll
-- Named scratchpads - a terminal and a tmux session for editing notes in. I
-- use gnome-terminal with a role for both of these instead of uxterm with a
-- title, because title gets changed by running stuff inside of xterms, seemingly
-- no matter how things are configured. See also /bin/notesession.
-- title, because title gets changed by running stuff inside of xterms,
-- seemingly no matter how things are configured.
--
-- NamedScratchpad docs:
-- https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Util-NamedScratchpad.html
--
-- If you want a regular window here instead of a floaty one, use
-- `(nonFloating)` instead of (customFloating ...). It turns out that the
-- floating ones are a lot easier to toggle over a workspace without otherwise
-- messing with window management, since you don't have to muck around with
-- layouts at all, size is predictable, etc. You probably want floating.
--
-- See also /bin/notesession.
scratchpads =
[ NS "scratch" "gnome-terminal --role scratch" (role =? "scratch")
-- this goes: start-x, start-y, width (1.0 is full screen), height:


Loading…
Cancel
Save