aboutsummaryrefslogtreecommitdiff
path: root/dot_xmonad/xmonad.hs.tmpl
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2023-01-31 14:37:10 -0500
committerRyan Kavanagh <rak@rak.ac>2023-01-31 14:37:10 -0500
commit9a8ca539d71dc338abaf569f8ba1325bf4090a68 (patch)
tree58f61c6fb999be1280bb67b0a9179f8c16f3277f /dot_xmonad/xmonad.hs.tmpl
parentrm bin/mutt (diff)
parentlbdbrc update for mutt aliases and no gpg on openbsd (diff)
Merge remote-tracking branch 'origin'
Diffstat (limited to '')
-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)