Configuration

Xmonad:某些應用程序未在我在配置中定義的工作區中啟動

  • September 4, 2013

這是我的 xmonad 配置的一部分~/.xmonad/xmonad.hs

myWorkspaces            :: [String]
myWorkspaces            = clickable . (map dzenEscape) $ ["web","doc","ssh","devel","chat","temp"]

 where clickable l     = [ "^ca(1,xdotool key super+" ++ show (n) ++ ")" ++ ws ++ "^ca()" |
                           (i,ws) <- zip [1..] l,
                           let n = i ]


   myManageHook = composeAll
   [ className =? "MPlayer"        --> doFloat
   , className =? "Vlc"            --> doFloat
   , className =? "Gimp"           --> doFloat
   , className =? "skype"           --> doF (W.shift (myWorkspaces !! 4))
   , className =? "Mail"           --> doF (W.shift (myWorkspaces !! 4))
--    , className =? "XCalc"          --> doFloat
   , className =? "Firefox"       --> doF (W.shift (myWorkspaces !! 0)) -- send to ws 0
--    , className =? "Nautilus"       --> doF (W.shift (myWorkspaces !! 5)) -- send to ws 5
   , className =? "gvim"       --> doF (W.shift (myWorkspaces !! 1)) -- send to ws 1
--    , className =? "Terminal"       --> doF (W.shift (myWorkspaces !! 3)) -- send to ws 3
   , className =? "Gimp"           --> doF (W.shift (myWorkspaces !! 1)) -- send to ws 1
   , className =? "Codeblocks"      --> doF (W.shift (myWorkspaces !! 3)) -- send to ws 3
   , className =? "stalonetray"    --> doIgnore
   ]

問題是,Firefox 或 Codeblocks 從我想要的工作區開始,但 Skype 和郵件(Thunderbird)不尊重這些設置,並且總是在活動工作區開始。

確保 Skype 大寫。我使用className =? "Skype" --> doShift "8"並且可以,但是如果我將 Skype 保留為小寫,則不會。我不使用 Thunderbird,但也許這也是一個類名問題。看起來您應該使用“Thunderbird-bin”。

http://ubuntuforums.org/archive/index.php/t-863092.html

引用自:https://unix.stackexchange.com/questions/81308