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 ...@@ -10,7 +10,7 @@ import QBar.Host
import QBar.Theme import QBar.Theme
import Control.Monad (forever, when, unless, forM_) import Control.Monad (forever, when, unless, forM_)
import Control.Concurrent.Async -- import Control.Concurrent.Async
import Control.Concurrent.STM.TChan (newTChanIO) import Control.Concurrent.STM.TChan (newTChanIO)
import Data.Aeson (encode, decode, ToJSON, toJSON, object, (.=)) import Data.Aeson (encode, decode, ToJSON, toJSON, object, (.=))
import Data.ByteString.Lazy (hPut) import Data.ByteString.Lazy (hPut)
...@@ -108,18 +108,18 @@ runBarServer defaultBarConfig options = runBarHost barServer (swayBarInput optio ...@@ -108,18 +108,18 @@ runBarServer defaultBarConfig options = runBarHost barServer (swayBarInput optio
defaultBarConfig defaultBarConfig
-- Create control socket -- Create control socket
commandChan <- liftIO createCommandChan -- commandChan <- liftIO createCommandChan
controlSocketAsync <- liftIO $ listenUnixSocketAsync options commandChan -- controlSocketAsync <- liftIO $ listenUnixSocketAsync options commandChan
liftIO $ link controlSocketAsync -- liftIO $ link controlSocketAsync
bar <- askBar -- bar <- askBar
-- Update bar on control socket messages -- Update bar on control socket messages
socketUpdateAsync <- liftIO $ async $ forever $ do -- socketUpdateAsync <- liftIO $ async $ forever $ do
-- command <- atomically $ readTChan commandChan -- -- command <- atomically $ readTChan commandChan
void $ error "TODO" -- void $ error "TODO"
updateBar' bar -- updateBar' bar
liftIO $ link socketUpdateAsync -- liftIO $ link socketUpdateAsync
swayBarOutput options 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