blob: cba027bdf05e9b9198edb73b094a5d5122f8fae6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
-----------------------------------------------------------------------------
-- |
-- Module : Xmobar.Actions
-- Copyright : (c) Alexander Polakov
-- License : BSD-style (see LICENSE)
--
-- Maintainer : Jose A. Ortega Ruiz <jao@gnu.org>
-- Stability : unstable
-- Portability : unportable
--
-----------------------------------------------------------------------------
module Actions where
import System.Process (system)
import Control.Monad (void)
data Action = Spawn String
deriving (Eq)
runAction :: Action -> IO ()
runAction (Spawn s) = void $ system (s ++ "&")
|