diff options
author | Ryan Kavanagh <rak@rak.ac> | 2023-01-13 15:22:16 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2023-01-13 15:22:16 -0500 |
commit | 3159350231b2986f91ae0ba93dc84d44b3fe2d8c (patch) | |
tree | 9f92f737b70f33e785a1946d9bd3db3e113e4a4f | |
parent | xterm on openbsd, and default to work layout (diff) |
template-ify xmonad config
-rw-r--r-- | dot_xmonad/xmonad.hs.tmpl (renamed from dot_xmonad/xmonad.hs) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dot_xmonad/xmonad.hs b/dot_xmonad/xmonad.hs.tmpl index ed227f6..ac70ae8 100644 --- a/dot_xmonad/xmonad.hs +++ b/dot_xmonad/xmonad.hs.tmpl @@ -58,7 +58,7 @@ import XMonad.StackSet (shiftMaster, greedyView, shift) myMod = mod4Mask -- windows key myCtrl = controlMask -myTerminal = "urxvtc" +myTerminal = {{ if (eq .chezmoi.os "linux") }}"urxvtc"{{ else }}"xterm"{{ end }} -- Mouse bindings: default actions bound to mouse events myMouseBindings (XConfig {XMonad.modMask = modMask}) = fromList $ @@ -97,7 +97,7 @@ mykeys _ = [ , ((myMod, xK_F6), spawn "sleep 0.5 && ${HOME}/bin/icd && ${HOME}/bin/mice.sh") , ((myMod, xK_Up), spawn "sleep 0.5 && b u") , ((myMod, xK_Down), spawn "sleep 0.5 && b d") - , ((myMod, xK_l), spawn "slock xset dpms force off") + , ((myMod, xK_l), spawn {{ if (eq .chezmoi.os "linux") }}"slock xset dpms force off"{{ else }}"xlock"{{ end }}) , ((myMod .|. myCtrl .|. shiftMask, xK_Right), sendMessage $ Move R) , ((myMod .|. myCtrl .|. shiftMask, xK_Left), sendMessage $ Move L) , ((myMod .|. myCtrl .|. shiftMask, xK_Up), sendMessage $ Move U) |