ADD autorandr selector

This commit is contained in:
Nathan Dwarshuis 2020-08-17 18:46:02 -04:00
parent b77edbfcbb
commit 8c98ab5939
2 changed files with 5 additions and 0 deletions

View File

@ -498,6 +498,7 @@ mkKeys ts c =
-- M-<F1> reserved for showing the keymap
, ("M-<F2>", "restart xmonad", runCleanup ts >> runRestart)
, ("M-<F3>", "recompile xmonad", runRecompile)
, ("M-<F8>", "select autorandr profile", runAutorandrMenu)
, ("M-<F9>", "toggle ethernet", runToggleEthernet)
, ("M-<F10>", "toggle bluetooth", runToggleBluetooth)
, ("M-<F11>", "toggle screensaver", runToggleDPMS)

View File

@ -10,6 +10,7 @@ module XMonad.Internal.Command.DMenu
, runDevMenu
, runBwMenu
, runShowKeys
, runAutorandrMenu
) where
import Control.Monad.Reader
@ -84,3 +85,6 @@ runWinMenu = spawnDmenuCmd ["-show", "window"]
runNetMenu :: X ()
runNetMenu = spawnCmd "networkmanager_dmenu" $ themeArgs "#ff3333"
runAutorandrMenu :: X ()
runAutorandrMenu = spawnCmd "rofi-autorandr" $ themeArgs "#ff0066"