Add command to refresh display

e75ec4e4c21ac62eed997cd4f10d808c92b9de91
Alexis Sellier committed ago 1 parent 0527798a
.xmonad/xmonad.hs +1 -0
75 75
    Map.union ks (XMonad.keys def conf)
76 76
  where
77 77
    ks = Map.fromList
78 78
       [ ((modMask, xK_F12),                    safeSpawn "sleep" [])
79 79
       , ((modMask .|. shiftMask, xK_F12),      safeSpawn "systemctl" ["hibernate"])
80 +
       , ((modMask, xK_F5),                     safeSpawn "refresh-display" [])
80 81
       , ((modMask, xK_p),                      dmenu)
81 82
       , ((modMask, xK_Tab),                    toggleWS)
82 83
       , ((modMask .|. controlMask, xK_Return), toggleFloatNext >> (spawn $ XMonad.terminal conf))
83 84
       , ((noModMask, xK_Print),                spawn $ printf "scrot -u -e 'mv $f %s/screenshots'" home)
84 85
       ]
bin/refresh-display added +2 -0
1 +
#!/bin/sh
2 +
xrandr --output DP-1 --auto