From efb2439ab82052f6eeb4728d5df774cccb121a8a Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 7 Mar 2020 22:59:24 +0100 Subject: carbon x1 Arch linux config --- xmonad.hs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'xmonad.hs') diff --git a/xmonad.hs b/xmonad.hs index eb9edb3..6e379cc 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -6,7 +6,7 @@ import XMonad.Util.SpawnOnce import XMonad.Util.EZConfig(additionalKeysP) myModMask = mod4Mask -myTerminal = "konsole" +myTerminal = "st" myTextEditor = "vim" myBorderWidth = 2 @@ -14,22 +14,14 @@ main = do xmonad $ desktopConfig { modMask = myModMask , terminal = myTerminal - , startupHook = myStartupHook , borderWidth = myBorderWidth , normalBorderColor = "#292d3e" , focusedBorderColor = "#bbc5ff" } `additionalKeysP` myKeys -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") ] - -- , ("", spawn "playerctl play-pause") - -- , ("", spawn "playerctl previous") - -- , ("", spawn "playerctl next") - -- , ("", spawn "lux -a 5%") - -- , ("", spawn "lux -s 5%") -- cgit From 2cb01951327a16835ea89196fe001cbde6977ea2 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 13 Mar 2020 21:31:40 +0100 Subject: xmonad config from master --- xmonad.hs | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'xmonad.hs') diff --git a/xmonad.hs b/xmonad.hs index 6e379cc..c22c11b 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -5,23 +5,27 @@ import XMonad.Config.Desktop import XMonad.Util.SpawnOnce import XMonad.Util.EZConfig(additionalKeysP) -myModMask = mod4Mask -myTerminal = "st" -myTextEditor = "vim" -myBorderWidth = 2 +-- Layouts +import XMonad.Layout.NoBorders + main = do xmonad $ desktopConfig - { modMask = myModMask - , terminal = myTerminal - , borderWidth = myBorderWidth + { modMask = mod4Mask -- mod key to super + , terminal = "st" + , borderWidth = 1 + , focusFollowsMouse = False -- don't change window based on mouse position (need to click) , normalBorderColor = "#292d3e" , focusedBorderColor = "#bbc5ff" + , layoutHook = myLayouts } `additionalKeysP` myKeys -myKeys = [ ("", spawn "pulseaudio-ctl up") - , ("", spawn "pulseaudio-ctl down") - , ("", spawn "pulseaudio-ctl mute") - , ("", spawn "xbacklight -inc 5") - , ("", spawn "xbacklight -dec 5") - ] +myLayouts = tiled ||| Mirror tiled ||| noBorders Full + where tiled = Tall 1 (3 / 100) (1 / 2) + +myKeys = [ ("", spawn "pulseaudio-ctl up") + , ("", spawn "pulseaudio-ctl down") + , ("", spawn "pulseaudio-ctl mute") + , ("", spawn "xbacklight -inc 5") + , ("", spawn "xbacklight -dec 5") + ] -- cgit From 1eab52cfcbcc9f510d1f5c6c1bcdd5b359971c2b Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 22 May 2020 14:39:13 +0200 Subject: Added lock screen, prettier gdb and valgrind --- xmonad.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmonad.hs') diff --git a/xmonad.hs b/xmonad.hs index 5420664..b726236 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -32,8 +32,8 @@ myLayouts = tiledBigMaster -- bigger master for code and smaller slave fo tiledEven = Tall 1 (3 / 100) (1 / 2) myStartupHook = do - spawnOnce "redshift -c /home/charles/.config/redshift.conf &" -- start redshift spawnOnce "xinput disable 'ETPS/2 Elantech Touchpad' &" -- disable touchpad + -- spawnOnce "redshift -c /home/charles/.config/redshift.conf &" -- start redshift myManageHook = insertPosition End Newer -- insert new window at the end of the current layout @@ -42,4 +42,5 @@ myKeys = [ ("", spawn "pulseaudio-ctl up") -- volume u , ("", spawn "pulseaudio-ctl mute") -- volume mute , ("", spawn "xbacklight -inc 5") -- backlight up , ("", spawn "xbacklight -dec 5") -- backlight down + , ("", spawn "slock") -- lock screen ] -- cgit