tv xmonad: add 22.05 compatibility
This commit is contained in:
parent
f5eefc5cad
commit
88a2a5fc9d
@ -7,7 +7,7 @@ module Main (main) where
|
|||||||
import System.Exit (exitFailure)
|
import System.Exit (exitFailure)
|
||||||
|
|
||||||
import Control.Exception
|
import Control.Exception
|
||||||
import Control.Monad.Extra (ifM, whenJustM)
|
import Control.Monad.Extra (whenJustM)
|
||||||
import qualified Data.List
|
import qualified Data.List
|
||||||
import Graphics.X11.ExtraTypes.XF86
|
import Graphics.X11.ExtraTypes.XF86
|
||||||
import Text.Read (readEither)
|
import Text.Read (readEither)
|
||||||
@ -68,7 +68,9 @@ mainNoArgs :: IO ()
|
|||||||
mainNoArgs = do
|
mainNoArgs = do
|
||||||
workspaces0 <- getWorkspaces0
|
workspaces0 <- getWorkspaces0
|
||||||
handleShutdownEvent <- newShutdownEventHandler
|
handleShutdownEvent <- newShutdownEventHandler
|
||||||
launch
|
let
|
||||||
|
config =
|
||||||
|
id
|
||||||
$ withUrgencyHook (SpawnUrgencyHook "echo emit Urgency ")
|
$ withUrgencyHook (SpawnUrgencyHook "echo emit Urgency ")
|
||||||
$ def
|
$ def
|
||||||
{ terminal = {-pkg:rxvt_unicode-}"urxvtc"
|
{ terminal = {-pkg:rxvt_unicode-}"urxvtc"
|
||||||
@ -100,6 +102,8 @@ mainNoArgs = do
|
|||||||
, focusedBorderColor = "#f000b0"
|
, focusedBorderColor = "#f000b0"
|
||||||
, handleEventHook = handleShutdownEvent
|
, handleEventHook = handleShutdownEvent
|
||||||
}
|
}
|
||||||
|
directories <- getDirectories
|
||||||
|
launch config directories
|
||||||
|
|
||||||
|
|
||||||
getWorkspaces0 :: IO [String]
|
getWorkspaces0 :: IO [String]
|
||||||
|
Loading…
Reference in New Issue
Block a user