change order in program workspace declaration
This commit is contained in:
parent
b46a906665
commit
199740cb43
1 changed files with 10 additions and 13 deletions
|
@ -1,7 +1,5 @@
|
|||
module XMonad.Custom.ProgramWorkSpaces (myProgramWorkSpacesKeyBindings, myProgramWorkSpaces) where
|
||||
|
||||
import Data.Tuple
|
||||
|
||||
import XMonad
|
||||
import XMonad.Actions.WindowGo
|
||||
|
||||
|
@ -12,20 +10,20 @@ import XMonad.Custom.BindingUtils
|
|||
myProgramWorkSpaceSuperKey :: String
|
||||
myProgramWorkSpaceSuperKey = "M1"
|
||||
|
||||
-- | WorkSpaces (label, key, executable, className/ general )
|
||||
-- | WorkSpaces (key, label, executable, className/ general )
|
||||
type ProgramWorkSpace = (String, String, String, Query Bool)
|
||||
|
||||
myProgramWorkSpacesConfig :: [ProgramWorkSpace]
|
||||
myProgramWorkSpacesConfig = addClassNameStrCheck [
|
||||
("signal", "s", "signal-desktop", "Signal")
|
||||
, ("element", "e", "element-desktop", "Element")
|
||||
, ("discord", "d", "discord", "discord")
|
||||
, ("telegram", "t", "telegram-desktop", "TelegramDesktop")
|
||||
, ("ownCloud", "o", "owncloud", "owncloud")
|
||||
, ("firefox", "f", "firefox", "firefox")
|
||||
, ("mail", "m", "thunderbird", "Thunderbird")
|
||||
, ("xournal", "x", "xournalpp", "Xournalpp")
|
||||
, ("qute", "q", "qutebrowser", "qutebrowser")
|
||||
("s", "signal", "signal-desktop", "Signal")
|
||||
, ("e", "element", "element-desktop", "Element")
|
||||
, ("d", "discord", "discord", "discord")
|
||||
, ("t", "telegram", "telegram-desktop", "TelegramDesktop")
|
||||
, ("o", "ownCloud", "owncloud", "owncloud")
|
||||
, ("f", "firefox", "firefox", "firefox")
|
||||
, ("m", "mail", "thunderbird", "Thunderbird")
|
||||
, ("x", "xournal", "xournalpp", "Xournalpp")
|
||||
, ("q", "qute", "qutebrowser", "qutebrowser")
|
||||
]
|
||||
where
|
||||
addClassNameStrCheck = mapFourth4 $ \classNameStr -> className =? classNameStr
|
||||
|
@ -59,7 +57,6 @@ myProgramWorkSpaces = map first4 myProgramWorkSpacesConfig
|
|||
|
||||
myProgramWorkSpacesBindingsRaw :: [(String, String)]
|
||||
myProgramWorkSpacesBindingsRaw = (addModifierToBinding myProgramWorkSpaceSuperKey)
|
||||
. (map swap)
|
||||
. (map quadrupleToPairFront)
|
||||
$ myProgramWorkSpacesConfig
|
||||
|
||||
|
|
Loading…
Reference in a new issue