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