mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 04:01:51 -07:00
Use xmessage from core
Related: https://github.com/xmonad/xmonad/pull/318
This commit is contained in:
@@ -710,9 +710,9 @@ multimediaKeys = filter ((/= noSymbol) . snd) . map (id &&& stringToKeysym) $
|
||||
checkKeymap :: XConfig l -> [(String, a)] -> X ()
|
||||
checkKeymap conf km = warn (doKeymapCheck conf km)
|
||||
where warn ([],[]) = return ()
|
||||
warn (bad,dup) = spawn $ "xmessage 'Warning:\n"
|
||||
warn (bad,dup) = xmessage $ "Warning:\n"
|
||||
++ msg "bad" bad ++ "\n"
|
||||
++ msg "duplicate" dup ++ "'"
|
||||
++ msg "duplicate" dup
|
||||
msg _ [] = ""
|
||||
msg m xs = m ++ " keybindings detected: " ++ showBindings xs
|
||||
showBindings = unwords . map (("\""++) . (++"\""))
|
||||
|
Reference in New Issue
Block a user