aboutsummaryrefslogtreecommitdiff
path: root/src/Rahm/Desktop/Keys.hs
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-04-16 00:20:03 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:46 -0600
commit1ba923704e7889205f574de1b85f48773ec6aca7 (patch)
tree84b248671ab8918a12bb95a3ca62fb1912b934f2 /src/Rahm/Desktop/Keys.hs
parent9e5d56cfb2508d9f5e58bf681265d0f1070b3f35 (diff)
downloadrde-1ba923704e7889205f574de1b85f48773ec6aca7.tar.gz
rde-1ba923704e7889205f574de1b85f48773ec6aca7.tar.bz2
rde-1ba923704e7889205f574de1b85f48773ec6aca7.zip
fix some hlint warnings
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 388f1bb..74960df 100644
--- a/src/Rahm/Desktop/Keys.hs
+++ b/src/Rahm/Desktop/Keys.hs
@@ -292,7 +292,7 @@ keymap = runKeys $ do
(MaybeT . workspaceWithWindow) =<< MaybeT askWindowId)
(_, " ") -> Just $ accompaningWorkspace <$> getCurrentWorkspace
_ -> Nothing
-
+
justMod $
doc "Goto/Send/Etc To a workspace\n\n\t\
@@ -319,7 +319,7 @@ keymap = runKeys $ do
(_, Just w) -> gotoWorkspace =<< w
-- Test binding. Tests that I can still submap keysyms alone (keys
-- where XLookupString won't return anything helpful.)
- ((f, _), _) | f == xK_F1 ->
+ ((f, _), _) | f == xK_F1 ->
(safeSpawn "gxmessage" [
"-fn", "Source Code Pro",
documentation (keymap config)] :: X ())
@@ -456,7 +456,7 @@ keymap = runKeys $ do
bind xK_space $ do
justMod $ doc "Layout-related bindings" $ subkeys $ do
-
+
bind xK_n $
(noMod -|- justMod) $ doc "Use the next layout in the layout list." $
sendMessage toNextLayout
@@ -616,8 +616,10 @@ keymap = runKeys $ do
noMod $
doc "Move backward in location history" historyBack
- bind xK_bracketleft $ noMod navigateHistory
- bind xK_bracketright $ noMod navigateHistory
+ bind xK_bracketleft $ noMod $
+ doc "Move forward in location history" navigateHistory
+ bind xK_bracketright $ noMod $
+ doc "Move backward in location history" navigateHistory
-- Double-tap Z to toggle zoom.
bind xK_z $ do
@@ -756,7 +758,7 @@ mouseMap = runButtons $ do
]
forM_ (map fst swapButtons) $ \b ->
- bind b $ noMod $ \w -> click >> (continuous swapButtons b) w
+ bind b $ noMod $ \w -> click >> continuous swapButtons b w
bind button13 $ noMod $ subMouse $ do
bind button13 $ noMod $ subMouse $ do
@@ -770,7 +772,7 @@ mouseMap = runButtons $ do
bind button13 $
noMod $
noWindow $
- gotoWorkspace =<< (accompaningWorkspace <$> getCurrentWorkspace)
+ gotoWorkspace . accompaningWorkspace =<< getCurrentWorkspace
bind button15 $ do
noMod $ noWindow jumpToLastLocation