From f6c234caa69cbabdaf2af763ab5fd37700fe281d Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 2 Aug 2022 16:13:31 -0400 Subject: Configure autorandr properly, and call it with Super+r --- lib/xmonad.hs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lib/xmonad.hs') 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 -- cgit v1.2.3