diff options
author | jao <jao@gnu.org> | 2022-01-28 05:11:09 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-01-29 06:42:29 +0000 |
commit | 0d3021eb601dadfa10fae30f108108894086c82c (patch) | |
tree | 887481657041ed1dad5e86d47ab61594e52654b6 /src/Xmobar/App/TextEventLoop.hs | |
parent | 93da696658061e1c14fdca70b6c0f04c412b1fd8 (diff) | |
download | xmobar-0d3021eb601dadfa10fae30f108108894086c82c.tar.gz xmobar-0d3021eb601dadfa10fae30f108108894086c82c.tar.bz2 |
Basic text output, without colors, working
Diffstat (limited to 'src/Xmobar/App/TextEventLoop.hs')
-rw-r--r-- | src/Xmobar/App/TextEventLoop.hs | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/Xmobar/App/TextEventLoop.hs b/src/Xmobar/App/TextEventLoop.hs index ae3a9e3..50ee17c 100644 --- a/src/Xmobar/App/TextEventLoop.hs +++ b/src/Xmobar/App/TextEventLoop.hs @@ -16,35 +16,34 @@ -- ------------------------------------------------------------------------------ -module Xmobar.App.TextEventLoop (startLoop) where +module Xmobar.App.TextEventLoop (startTextLoop) where import Prelude hiding (lookup) import Control.Monad.Reader import Control.Concurrent -import Control.Concurrent.Async (Async, async) +import Control.Concurrent.Async (Async) import Control.Concurrent.STM -import Control.Exception (bracket_, handle, SomeException(..)) +import Control.Exception (handle, SomeException(..)) import Xmobar.System.Signal import Xmobar.Config.Types (Config) -import Xmobar.Run.Exec -import Xmobar.Run.Runnable + import Xmobar.X11.Parsers (parseStringAsText) -import Xmobar.App.CommandThreads (startCommand, refreshLockT) +import Xmobar.App.CommandThreads (refreshLockT) #ifdef DBUS import Xmobar.System.DBus #endif -- | Starts the main event loop and threads -startLoop :: Config - -> TMVar SignalType - -> TMVar () - -> [[([Async ()], TVar String)]] - -> IO () -startLoop cfg sig pauser vs = do +startTextLoop :: Config + -> TMVar SignalType + -> TMVar () + -> [[([Async ()], TVar String)]] + -> IO () +startTextLoop cfg sig pauser vs = do tv <- newTVarIO [] _ <- forkIO (handle (handler "checker") (checker tv [] vs sig pauser)) #ifdef DBUS |