diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2022-04-04 19:54:24 -0600 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2022-04-04 19:54:24 -0600 |
| commit | 877275e40301383b2fefc6ddcea15b1f04ddd6ab (patch) | |
| tree | 97929a78ed3666b03671fd0164cdc2869575e6c1 /src/Internal/Keys.hs | |
| parent | ab90e6f48f5448fa385e1d6f96f95ac723910264 (diff) | |
| parent | 20aaf1e159b6128ad136c0bcf489c0ac0ebc76f5 (diff) | |
| download | rde-877275e40301383b2fefc6ddcea15b1f04ddd6ab.tar.gz rde-877275e40301383b2fefc6ddcea15b1f04ddd6ab.tar.bz2 rde-877275e40301383b2fefc6ddcea15b1f04ddd6ab.zip | |
Merge branch 'v017' of josher.dev:rde into v017
Diffstat (limited to 'src/Internal/Keys.hs')
| -rw-r--r-- | src/Internal/Keys.hs | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs index 961bfc5..3f9882b 100644 --- a/src/Internal/Keys.hs +++ b/src/Internal/Keys.hs @@ -290,11 +290,17 @@ keymap = runKeys $ do doc "Shrink the size of the zoom region" $ sendMessage ShrinkZoom + shiftMod $ + doc "Go to the previous window in history." historyPrev + bind xK_k $ do justMod $ doc "Expand the size of the zoom region" $ sendMessage ExpandZoom + shiftMod $ + doc "Go to the next window in history." historyNext + bind xK_l $ do justMod $ doc "Focus the next window in the stack" $ @@ -420,18 +426,19 @@ keymap = runKeys $ do _ -> return () bind xK_p $ do - (justMod -|- noMod) $ mapNextString $ \_ str -> - spawnX $ printf "gxmessage 'typed: \"%s\"\ncodes: \"%s\"\nunicode: รก\n'" - str - (show (map ord str)) + (justMod -|- noMod) $ + doc "Go to the prior window in the history" historyPrev bind xK_t $ do (justMod -|- noMod) $ logs "Test Log" + -- bind xK_n $ do + -- (justMod -|- noMod) $ + -- doc "Take a note" $ + -- spawnX (terminal config ++ " -t Notes -e notes new") bind xK_n $ do (justMod -|- noMod) $ - doc "Take a note" $ - spawnX (terminal config ++ " -t Notes -e notes new") + doc "Go to the next window in the history" historyNext bind xK_c $ do shiftMod $ @@ -589,8 +596,8 @@ mouseMap = runButtons $ do (button4, increaseVolume), (button5, decreaseVolume), (button2, playPause), - (button9, mediaNext), - (button8, mediaPrev), + (button9, historyNext), + (button8, historyPrev), (button6, mediaPrev), (button7, mediaNext) ] |