28 lines
519 B
Haskell
28 lines
519 B
Haskell
module Shell where
|
|
|
|
import XMonad
|
|
|
|
myTerm :: String
|
|
myTerm = "urxvt"
|
|
|
|
fmtCmd :: String -> [String] -> String
|
|
fmtCmd cmd args = unwords $ cmd : args
|
|
|
|
spawnCmd :: String -> [String] -> X ()
|
|
spawnCmd cmd args = spawn $ fmtCmd cmd args
|
|
|
|
(#!&&) :: String -> String -> String
|
|
cmdA #!&& cmdB = cmdA ++ " && " ++ cmdB
|
|
|
|
infixr 0 #!&&
|
|
|
|
(#!||) :: String -> String -> String
|
|
cmdA #!|| cmdB = cmdA ++ " || " ++ cmdB
|
|
|
|
infixr 0 #!||
|
|
|
|
(#!>>) :: String -> String -> String
|
|
cmdA #!>> cmdB = cmdA ++ "; " ++ cmdB
|
|
|
|
infixr 0 #!>>
|