diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index 5b94c2a..f16860b 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -60,7 +60,10 @@ hdmi1Off = "xrandr --output eDP-1 --primary --output HDMI-1 --off" musicCmd = "mpd" nextcloudCmd = "nextcloud" notificationCmd = "lxqt-notificationd" -screensaverCmd = "xscreensaver -no-splash" +screensaverCmd = "xscreensaver --no-splash" +screensaverLock = "xscreensaver-command -lock" +screenshot = "scrot" -- Screenshot the entire screen +screenshotWindow = "sleep 0.2; scrot -s" -- Screenshot the selected window settingsDaemon = "xsettingsd" terminalCmd = "termonad" trayerCmd = "trayer --edge top --SetPartialStrut false --width 7 --transparent true --alpha 0 --tint 0x1C1C1C --height 20 --monitor primary" @@ -105,11 +108,11 @@ main = do -- Use Xmonad's built-in launcher [ ((mod4Mask, xK_p), shellPrompt myXPConfig) -- Lock the screen - , ((0, 0x1008ff2d), spawn "xscreensaver-command -lock") + , ((0, 0x1008ff2d), spawn screensaverLock) -- XF86ScreenSaver - , ((mod4Mask .|. controlMask, xK_l), spawn "xscreensaver-command -lock") - , ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s") -- Screenshot the selected window - , ((0, xK_Print), spawn "scrot") -- Screenshot the entire screen + , ((mod4Mask .|. controlMask, xK_l), spawn screensaverLock) + , ((controlMask, xK_Print), spawn screenshotWindow) + , ((0, xK_Print), spawn screenshot) -- Turn on the eDP-1 port and set it as the primary display , ((mod4Mask .|. shiftMask, xK_e), spawn "xrandr --output eDP-1 --primary --auto"