1
トレイアイコンからskype/discordを開くと、プログラムウィンドウが特定のワークスペース"11:w-"
に移動し、現在の画面もこのワークスペースに切り替わります。私の問題は、タイプを正しく取得できないということです。XmonadのmanageHookで複数のアクションをチェーンするにはどうしたらいいですか?
myManageHook = composeAll . concat $
[ [ className =? t --> sequence [doShift "11:w-", screenWorkspace "11:w-"] | t <- rarelyUsedApps] ]
rarelyUsedApps = ["Skype", "discord"]
このコードは、私は上記のコードでは、最初のエラーは、私がscreenWorkspace "11:w-"
に作業領域名の代わりに、ワークスペースIDを渡すことがあることに気付きましたエラー
Error detected while loading xmonad configuration file: /home/i/.xmonad/xmonad.hs
xmonad.hs:268:33:
Couldn't match type `[Data.Monoid.Endo WindowSet]'
with `Data.Monoid.Endo
(W.StackSet
WorkspaceId (Layout Window) Window ScreenId ScreenDetail)'
Expected type: Query
(Data.Monoid.Endo
(W.StackSet
WorkspaceId (Layout Window) Window ScreenId ScreenDetail))
Actual type: Query [Data.Monoid.Endo WindowSet]
In the return type of a call of `sequence'
In the second argument of `(-->)', namely
`sequence [doShift "11:w-", screenWorkspace "11:w-"]'
In the expression:
className =? t
--> sequence [doShift "11:w-", screenWorkspace "11:w-"]
xmonad.hs:268:60:
Couldn't match type `X' with `Query'
Expected type: Query (Data.Monoid.Endo WindowSet)
Actual type: X (Maybe WorkspaceId)
In the return type of a call of `screenWorkspace'
In the expression: screenWorkspace "11:w-"
In the first argument of `sequence', namely
`[doShift "11:w-", screenWorkspace "11:w-"]'
xmonad.hs:268:76:
Couldn't match expected type `ScreenId' with actual type `[Char]'
In the first argument of `screenWorkspace', namely `"11:w-"'
In the expression: screenWorkspace "11:w-"
In the first argument of `sequence', namely
`[doShift "11:w-", screenWorkspace "11:w-"]'
Please check the file for errors.