diff options
| author | Josh Rahm <rahm@google.com> | 2021-11-22 16:03:16 -0700 |
|---|---|---|
| committer | Josh Rahm <rahm@google.com> | 2021-11-22 16:03:16 -0700 |
| commit | 6b91a961e2951f40359af1fe2f1702970edac879 (patch) | |
| tree | b01387e15a49de4081e8dd4acf900841469e87e6 /src/Main.hs | |
| parent | 4661b9e7c78e556adc3cf998b65808a4d7886746 (diff) | |
| download | rde-6b91a961e2951f40359af1fe2f1702970edac879.tar.gz rde-6b91a961e2951f40359af1fe2f1702970edac879.tar.bz2 rde-6b91a961e2951f40359af1fe2f1702970edac879.zip | |
Compeletely change how KeyBindings are done.
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.
Diffstat (limited to 'src/Main.hs')
| -rw-r--r-- | src/Main.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs index 5b4d5e1..94fb5a7 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -6,6 +6,7 @@ import System.FilePath ((</>)) import XMonad.Hooks.EwmhDesktops (ewmhDesktopsStartup) import XMonad.Hooks.ManageHelpers (isFullscreen, doFullFloat) import XMonad.Layout.Fullscreen (fullscreenEventHook) +import System.Environment (setEnv) import Internal.XMobarLog import Internal.Keys @@ -19,6 +20,8 @@ main = do homeDir <- getHomeDirectory let fp = homeDir </> ".xmonad" </> "startup" + setEnv "SUDO_ASKPASS" "/usr/bin/ssh-askpass" + xmobar <- spawnXMobar (=<<) X.xmonad $ |