Skip to content
Snippets Groups Projects
Commit 4c928d4c authored by Jens Nolte's avatar Jens Nolte
Browse files

Remove currently dysfunctional control socket

parent b6f597e1
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ import QBar.Host
import QBar.Theme
import Control.Monad (forever, when, unless, forM_)
import Control.Concurrent.Async
-- import Control.Concurrent.Async
import Control.Concurrent.STM.TChan (newTChanIO)
import Data.Aeson (encode, decode, ToJSON, toJSON, object, (.=))
import Data.ByteString.Lazy (hPut)
......@@ -108,18 +108,18 @@ runBarServer defaultBarConfig options = runBarHost barServer (swayBarInput optio
defaultBarConfig
-- Create control socket
commandChan <- liftIO createCommandChan
controlSocketAsync <- liftIO $ listenUnixSocketAsync options commandChan
liftIO $ link controlSocketAsync
-- commandChan <- liftIO createCommandChan
-- controlSocketAsync <- liftIO $ listenUnixSocketAsync options commandChan
-- liftIO $ link controlSocketAsync
bar <- askBar
-- bar <- askBar
-- Update bar on control socket messages
socketUpdateAsync <- liftIO $ async $ forever $ do
-- command <- atomically $ readTChan commandChan
void $ error "TODO"
updateBar' bar
liftIO $ link socketUpdateAsync
-- socketUpdateAsync <- liftIO $ async $ forever $ do
-- -- command <- atomically $ readTChan commandChan
-- void $ error "TODO"
-- updateBar' bar
-- liftIO $ link socketUpdateAsync
swayBarOutput options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment