From 099e58b8febe3be4b01db43db35374ff97c49620 Mon Sep 17 00:00:00 2001 From: aether <72214839+v1gg123@users.noreply.github.com> Date: Sun, 17 Oct 2021 10:03:57 +0000 Subject: [PATCH] whoa that was a verY old version --- xmonad.hs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/xmonad.hs b/xmonad.hs index ab77a88..039f288 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -79,7 +79,7 @@ myFocusedBorderColor = "#e0b0ff" myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $ -- launch a terminal - [ ((modm .|. shiftMask, xK_Return), spawn $ XMonad.terminal conf) + [ ((modm, xK_Return), spawn $ XMonad.terminal conf) -- launch dmenu , ((modm, xK_p ), spawn "exe=`dmenu_path | dmenu` && eval \"exec $exe\"") @@ -95,7 +95,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $ , ((modm .|. shiftMask, xK_p ), spawn "gmrun") -- close focused window - , ((modm .|. shiftMask, xK_c ), kill) + , ((modm, xK_q ), kill) -- Rotate through the available layout algorithms , ((modm, xK_space ), sendMessage NextLayout) @@ -119,7 +119,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $ , ((modm, xK_m ), windows W.focusMaster ) -- Swap the focused window and the master window - , ((modm, xK_Return), windows W.swapMaster) + , ((modm, xK_space), windows W.swapMaster) -- Swap the focused window with the next window , ((modm .|. shiftMask, xK_j ), windows W.swapDown ) @@ -146,19 +146,17 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $ -- Use this binding with avoidStruts from Hooks.ManageDocks. -- See also the statusBar function from Hooks.DynamicLog. -- - -- , ((modm , xK_b ), sendMessage ToggleStruts) + , ((modm , xK_b ), sendMessage ToggleStruts) -- Quit xmonad , ((modm .|. shiftMask, xK_q ), io (exitWith ExitSuccess)) -- Restart xmonad - , ((modm , xK_q ), spawn "xmonad --recompile; xmonad --restart") + , ((modm , xK_c ), spawn "xmonad --recompile; xmonad --restart") ] ++ - -- - -- mod-[1..9], Switch to workspace N - -- + -- -- mod-[1..9], Switch to workspace N -- -- mod-[1..9], Switch to workspace N -- mod-shift-[1..9], Move client to workspace N -- @@ -291,7 +289,8 @@ myLogHook = return () -- myStartupHook = do spawnOnce "nitrogen --restore&" - spawnOnce "picom" + spawnOnce "compton" + spawnOnce "xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output eDP-1-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1-1 --off --output HDMI-1-1 --off" ------------------------------------------------------------------------ -- Now run xmonad with all the defaults we set up.