aboutsummaryrefslogtreecommitdiff
path: root/src/Internal/KeysM.hs
Commit message (Collapse)AuthorAge
* Rename Internal to Rahm.DesktopJosh Rahm2022-10-09
|
* Remove trailing spaceJosh Rahm2022-10-09
|
* Add a bunch more documentation and ability to see that documentationJosh Rahm2022-10-09
|
* basic ability teo generate configJosh Rahm2022-10-09
|
* Starting new branch to experimentally add documentation to KeyBindings.Josh Rahm2022-10-09
| | | | | | | | | | | | | | | | | | | | The hope is to get to a point where documentation can be automatically generated for key bindings, while keeping as much of the existing DSL unchanged as possible. The goal is to have something like: bind xK_h $ do doc "Set focus to the next window in the stack" justMod nextWindow doc "Swap this window with the next window in the stack." shiftMod shiftNextWindow Then "theoretically" a markdown/latex/text file can be generated with documentation for each of those bindings and have the documentation automatically update if the keys change.
* Fixed bug where multiple configures would override previous configures for ↵Josh Rahm2022-10-09
| | | | window-specific bindings
* Add a DSL for configuring Window-Specific bindings and move it into the ↵Josh Rahm2022-10-09
| | | | Keys.hs file.
* Add some support of the XF86 keys.Josh Rahm2022-10-09
|
* Mess with some other keybindings.Josh Rahm2022-10-09
|
* Compeletely change how KeyBindings are done.Josh Rahm2022-10-09
Created new KeysM and ButtonsM monads to make configuring keybindings and button bindings more readable through a DSL. Before bindings would just be a giant list, but that made it difficult to read and repetitive. Now the syntax follows the pattern bind key-to-bind mask1 : action mask2 : action i.e. bind xK_a $ do justMod $ doSomeAction a b c shiftMod $ doSomeOtherAction a b c This makes it a lot cleaner to see all the bindings allocated to a specific key. That way, when adding a new binding, I can easily see what bindings already exist for that key.