mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-30 19:51:51 -07:00
Use xmessage from core
Related: https://github.com/xmonad/xmonad/pull/318
This commit is contained in:
@@ -76,7 +76,6 @@ import qualified XMonad.Hooks.DynamicLog as DL
|
||||
import qualified XMonad.StackSet as W
|
||||
|
||||
import Data.Map (Map)
|
||||
import System.IO (hClose, hPutStr)
|
||||
|
||||
import XMonad.Prompt (XPConfig)
|
||||
import XMonad.Prompt.Workspace (workspacePrompt)
|
||||
@@ -91,8 +90,6 @@ import XMonad.Hooks.WorkspaceHistory
|
||||
, workspaceHistoryModify
|
||||
)
|
||||
|
||||
import XMonad.Util.Run (spawnPipe)
|
||||
|
||||
-- $overview
|
||||
-- This module allows to organize your workspaces on a precise topic basis. So
|
||||
-- instead of having a workspace called `work' you can setup one workspace per
|
||||
@@ -383,13 +380,6 @@ checkTopicConfig tags tg = do
|
||||
check diffTopic "Seen but missing topics/workspaces"
|
||||
check dups "Duplicate topics/workspaces"
|
||||
|
||||
-- | Display the given message using the @xmessage@ program.
|
||||
xmessage :: String -> IO ()
|
||||
xmessage s = do
|
||||
h <- spawnPipe "xmessage -file -"
|
||||
hPutStr h s
|
||||
hClose h
|
||||
|
||||
-- | Convenience type for specifying topics.
|
||||
data TopicItem = TI
|
||||
{ tiName :: !Topic -- ^ 'Topic' ≡ 'String'
|
||||
|
Reference in New Issue
Block a user