From 83b096d18f98b8b9121cb5c18a80c40157a6f8fd Mon Sep 17 00:00:00 2001 From: Trey Blancher Date: Mon, 17 Oct 2022 21:08:44 -0400 Subject: [PATCH] Set apps to open on specific named workspace --- xmonad.hs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xmonad.hs b/xmonad.hs index b6383cd..d8aeea4 100755 --- a/xmonad.hs +++ b/xmonad.hs @@ -434,7 +434,9 @@ myKeys = [ sendMessage $ ToggleGaps) , ((lAlt , xK_g), spawnHere "~/bin/google_selection.sh") --, ((winKey , xK_g), ifWindows (className =? "Google-chrome") (mapM_ focus) (spawnHere "google-chrome")) - , ((winKey , xK_g), ifWindows (className =? "Google-chrome") (mapM_ focus) (spawnHere "google-chrome-stable")) + , ((winKey , xK_g), do + windows (viewOnScreen 0 "pindrop") + ifWindows (className =? "Google-chrome") (mapM_ focus) (spawnHere "google-chrome-stable")) --, ((winKey , xK_r), do -- windows (viewOnScreen 1 "wb") -- ifWindows (className =? "Google-chrome-stable") (mapM_ focus) (spawnHere "google-chrome-stable")) @@ -442,7 +444,7 @@ myKeys = [ --, ((winKey , xK_g), spawnHere "google-chrome --purge-memory-button ") --, ((winKey , xK_i), spawnHere "iceweasel") --, ((winKey , xK_i), spawnHere "clementine") - , ((winKey , xK_i), ifWindows (className =? "Clementine") (mapM_ killWindow) (spawnHere "clementine")) +-- , ((winKey , xK_i), ifWindows (className =? "Clementine") (mapM_ killWindow) (spawnHere "clementine")) -- , ((winKey , xK_d ), ifWindows (className =? "Goldendict") (mapM_ killWindow) (spawnHere "goldendict")) -- , ((winKey , xK_d), ifWindows (className =? "Xfce4-dict") (mapM_ killWindow) (spawnHere "xfce4-dict")) , ((winKey , xK_d), ifWindows (className =? "Org.gnome.Dictionary") (mapM_ killWindow) (spawnHere "gnome-dictionary")) @@ -506,7 +508,7 @@ myKeys = [ --ifWindows (className =? "Chromium") (mapM_ focus) (spawnHere "chromium")) --windows (viewOnScreen 1 "vivaldi") --ifWindows (className =? "Vivaldi-stable") (mapM_ focus) (spawnHere "vivaldi-stable")) - windows (viewOnScreen 1 "qb") + windows (viewOnScreen 0 "qb") ifWindows (className =? "qutebrowser") (mapM_ focus) (spawnHere "qutebrowser")) --ifWindows (className =? "Iceweasel") (mapM_ focus) (spawnHere "iceweasel")) , ((winKey .|. controlMask, xK_l), sendMessage Expand) @@ -514,7 +516,7 @@ myKeys = [ --, ((winKey , xK_1), ifWindows (className =? "Alacritty") (mapM_ focus) (spawnHere myTerminal)) --, ((winKey , xK_2), windows (viewOnScreen 0 "chromium")) , ((winKey , xK_a), do - windows (viewOnScreen 1 "pindrop") + windows (viewOnScreen 0 "pindrop") --ifWindows (className =? "Pidgin") (mapM_ focus) (spawnHere "pidgin")) ifWindows (className =? "Slack") (mapM_ focus) (spawnHere "slack")) {-