summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-08-02 16:13:31 -0400
committerBen Sima <ben@bsima.me>2022-08-02 16:14:02 -0400
commitf6c234caa69cbabdaf2af763ab5fd37700fe281d (patch)
tree828e861a8715986ee533d1a1d6e75f3ff0cbe9c6 /lib
parenta4d9c311373a738f477eac64dd1186fe0ab7c053 (diff)
Configure autorandr properly, and call it with Super+r
Diffstat (limited to 'lib')
-rw-r--r--lib/xmonad.hs9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/xmonad.hs b/lib/xmonad.hs
index bb182fd..2fbd6d0 100644
--- a/lib/xmonad.hs
+++ b/lib/xmonad.hs
@@ -78,14 +78,9 @@ insKeys conf@(XConfig {modMask = modMask}) =
((modMask, xK_o), spawn "rofi -sidebar-mode -show run"),
((modMask, xK_n), spawn "rofi -sidebar-mode -show window"),
- -- restart xmonad and display stuff via home-manager
+ -- refresh display via autorandr
( (modMask, xK_r),
- spawn $
- intercalate
- " && "
- [ "xlayoutdisplay",
- "uctl restart polybar"
- ]
+ spawn $ "autorandr --cycle"
),
-- lock it up