aboutsummaryrefslogtreecommitdiff
path: root/src/Rahm/Desktop/Keys.hs
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-04-18 23:00:26 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-04-18 23:00:26 -0600
commit41b4bf01d61a0d42d27145700e41318715b37e1f (patch)
tree3aa5a9e17c3576a5130e6e2e349c505f91c0f105 /src/Rahm/Desktop/Keys.hs
parent25958a8363691a86a60667ca4f92b65247c51d89 (diff)
downloadrde-41b4bf01d61a0d42d27145700e41318715b37e1f.tar.gz
rde-41b4bf01d61a0d42d27145700e41318715b37e1f.tar.bz2
rde-41b4bf01d61a0d42d27145700e41318715b37e1f.zip
Highlight windows for marking too
Diffstat (limited to 'src/Rahm/Desktop/Keys.hs')
-rw-r--r--src/Rahm/Desktop/Keys.hs16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/Rahm/Desktop/Keys.hs b/src/Rahm/Desktop/Keys.hs
index 69873e4..9ae9c30 100644
--- a/src/Rahm/Desktop/Keys.hs
+++ b/src/Rahm/Desktop/Keys.hs
@@ -354,14 +354,16 @@ keymap = runKeys $ do
doc "For mosaic layout, shrink the size-share of the current window" $
sendMessage =<< shrinkPositionAlt
- bind xK_m $ do
+ bind xK_m $
justMod $
- doc "Mark the current window with the next typed character." $
- runMaybeT_ $ do
- locs <- readNextLocationSet
- mapNextString $ \_ str -> lift $
- case str of
- [ch] | isAlpha ch -> markAllLocations str locs
+ doc "Mark the current window with the next typed character." $ do
+ locs <- fromMaybe [] <$> runMaybeT readNextLocationSet
+ withBorderColor "#00ffff" (mapMaybe locationWindow locs) $ do
+ runMaybeT_ $ do
+ mapNextString $ \_ str -> lift $
+ case str of
+ [ch] | isAlpha ch -> markAllLocations str locs
+ _ -> return ()
bind xK_plus $ do
justMod $