2018-05-27 15:39:24 +02:00
|
|
|
|
|
|
|
module Scratchpad (
|
|
|
|
Scratchpad.modify,
|
|
|
|
Scratchpad.pads
|
|
|
|
) where
|
|
|
|
|
|
|
|
import Control.Monad (void)
|
|
|
|
import XMonad.Core
|
|
|
|
import XMonad.ManageHook
|
|
|
|
import XMonad.Util.NamedScratchpad
|
|
|
|
import qualified XMonad.StackSet as W
|
|
|
|
|
|
|
|
modify :: XConfig l -> XConfig l
|
|
|
|
modify conf = conf
|
2021-11-01 11:18:25 +01:00
|
|
|
{ manageHook = manageHook conf <> namedScratchpadManageHook pads
|
2018-05-27 15:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pads =
|
2021-12-15 11:38:09 +01:00
|
|
|
[ NS "htop" "nvidia-offload kitty --title htop tmux" (title =? "htop")
|
2018-05-27 15:39:24 +02:00
|
|
|
(customFloating $ W.RationalRect (1/3) (1/3) (1/3) (1/3))
|
|
|
|
-- , NS "stardict" "stardict" (className =? "Stardict")
|
|
|
|
-- (customFloating $ W.RationalRect (1/6) (1/6) (2/3) (2/3))
|
|
|
|
-- , NS "notes" "gvim --role notes ~/notes.txt" (role =? "notes") nonFloating
|
|
|
|
] where role = stringProperty "WM_WINDOW_ROLE"
|