From ebb061bc953b647bc2944e4f203f2d3fd30d181d Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 13 Mar 2020 18:17:19 +0100 Subject: xmonad fullscreen without borders --- xmonad.hs | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'xmonad.hs') diff --git a/xmonad.hs b/xmonad.hs index d64f95b..99a35e8 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -5,28 +5,32 @@ import XMonad.Config.Desktop import XMonad.Util.SpawnOnce import XMonad.Util.EZConfig(additionalKeysP) -myModMask = mod4Mask -myTerminal = "konsole" -myTextEditor = "vim" -myBorderWidth = 2 +-- Layouts +import XMonad.Layout.NoBorders + main = do xmonad $ desktopConfig - { modMask = myModMask - , terminal = myTerminal - , startupHook = myStartupHook - , borderWidth = myBorderWidth + { modMask = mod4Mask -- mod key to super + , terminal = "konsole" + , borderWidth = 1 + , focusFollowsMouse = False -- don't change window based on mouse position (need to click) , normalBorderColor = "#292d3e" , focusedBorderColor = "#bbc5ff" + , layoutHook = myLayouts + , startupHook = myStartupHook } `additionalKeysP` myKeys +myLayouts = tiled ||| Mirror tiled ||| noBorders Full + where tiled = Tall 1 (3 / 100) (3 / 5) + myStartupHook = do spawnOnce "redshift -c /home/charles/.config/redshift.conf &" spawnOnce "xinput disable 'ETPS/2 Elantech Touchpad' &" -myKeys = [ ("", spawn "pulseaudio-ctl up") - , ("", spawn "pulseaudio-ctl down") - , ("", spawn "pulseaudio-ctl mute") - , ("", spawn "xbacklight -inc 5") - , ("", spawn "xbacklight -dec 5") - ] +myKeys = [ ("", spawn "pulseaudio-ctl up") + , ("", spawn "pulseaudio-ctl down") + , ("", spawn "pulseaudio-ctl mute") + , ("", spawn "xbacklight -inc 5") + , ("", spawn "xbacklight -dec 5") + ] -- cgit