ENH puke if greenckip is missing
This commit is contained in:
parent
688d6ff405
commit
93215d199d
|
@ -95,13 +95,14 @@ runCmdMenu = spawnDmenuCmd ["-show", "run"]
|
||||||
runAppMenu :: IO MaybeX
|
runAppMenu :: IO MaybeX
|
||||||
runAppMenu = spawnDmenuCmd ["-show", "drun"]
|
runAppMenu = spawnDmenuCmd ["-show", "drun"]
|
||||||
|
|
||||||
-- TODO this also depends on greenclip
|
|
||||||
runClipMenu :: IO MaybeX
|
runClipMenu :: IO MaybeX
|
||||||
runClipMenu = spawnDmenuCmd $
|
runClipMenu = runIfInstalled [exe myDmenuCmd, exe "greenclip"]
|
||||||
[ "-modi", "\"clipboard:greenclip print\""
|
$ spawnCmd myDmenuCmd args
|
||||||
, "-show", "clipboard"
|
where
|
||||||
, "-run-command", "'{cmd}'"
|
args = [ "-modi", "\"clipboard:greenclip print\""
|
||||||
] ++ themeArgs "#00c44e"
|
, "-show", "clipboard"
|
||||||
|
, "-run-command", "'{cmd}'"
|
||||||
|
] ++ themeArgs "#00c44e"
|
||||||
|
|
||||||
runWinMenu :: IO MaybeX
|
runWinMenu :: IO MaybeX
|
||||||
runWinMenu = spawnDmenuCmd ["-show", "window"]
|
runWinMenu = spawnDmenuCmd ["-show", "window"]
|
||||||
|
|
Loading…
Reference in New Issue