Skip to content

Commit

Permalink
chore(xmonad): update workspace manage hooks
Browse files Browse the repository at this point in the history
Remove the manage hook that moved Tor Browser to the 'web' workspace, as
Tor isn't being used anymore, and add a hook to move Spotify and Plex
Media Player to the 'media' workspace.
  • Loading branch information
d3adb5 committed Nov 5, 2023
1 parent 6297b76 commit 6da86cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmonad/src/Config/ManageHook.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ import Data.Ratio
manageHook :: ManageHook
manageHook = composeAll
[ namedScratchpadManageHook scratchpads
, classNameIn webClassNames --> moveToWorkspace "web"
, classNameIn dcClassNames --> moveToWorkspace "chat"
, classNameIn mediaClassNames --> moveToWorkspace "media"
, className =? "Gimp" --> moveToWorkspace "gimp"
, composeOne $ hookClassNames centerFloat floatClassNames
++ hookPropValues centerFloat floatPropValues
++ [ isTile -?> insertPosition Master Newer
, isDialog -?> centerFloat ]
]
where
webClassNames = ["Tor Browser"]
floatClassNames = ["Pqiv", "sun-awt-X11-XFramePeer", "Udiskie", "fzfmenu"]
mediaClassNames = ["Spotify", "plexmediaplayer"]
dcClassNames = ["discord"]
floatPropValues =
[ ("WM_WINDOW_ROLE", "GtkFileChooserDialog")
Expand Down

0 comments on commit 6da86cd

Please sign in to comment.