Search code examples
haskellxmonad

Xmonad - Spawn a program silently on specified monitor and workspace?


How to start a program on specific monitor and specific workspace silently without focusing on it, sort of like you do when you press Mod + Shift + n? The problem with the following approach

className =? "ProgramClass" --> doShift ( workspaces !! n ),

is that it not only moves the window to the workspace it also opens a workspace, which I would rather avoid. spawnOn essentially does the same.

This is my current config


Solution

  • Ok my problem was XMonad.Hooks.EwmhDesktops after removing it from config doShift works without stealing my focus and moves items to a dedicated workspace without activating it.