From a91a5cf690c55fd015284c22221ca0a940b105c8 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sat, 9 Jul 2022 01:11:02 -0400 Subject: [PATCH] REF dry off gimp --- bin/xmonad.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/xmonad.hs b/bin/xmonad.hs index b90ce98..15a575f 100644 --- a/bin/xmonad.hs +++ b/bin/xmonad.hs @@ -236,7 +236,7 @@ f5Tag = "F5VPN" gimpDynamicWorkspace :: Sometimes DynWorkspace gimpDynamicWorkspace = sometimesIO_ "gimp workspace" "gimp" tree dw where - tree = Only_ $ sysExe [Package True "gimp"] "gimp-2.10" + tree = Only_ $ sysExe [Package True "gimp"] exe dw = DynWorkspace { dwName = "Gimp" , dwTag = gimpTag @@ -248,8 +248,9 @@ gimpDynamicWorkspace = sometimesIO_ "gimp workspace" "gimp" tree dw , className =? c -?> appendViewShift gimpTag ] , dwKey = 'g' - , dwCmd = Just $ spawnCmd "gimp-2.10" [] + , dwCmd = Just $ spawnCmd exe [] } + exe = "gimp-2.10" matchGimpRole role = isPrefixOf role <$> stringProperty "WM_WINDOW_ROLE" <&&> className =? c c = "Gimp-2.10" -- TODO I don't feel like changing the version long term