From bb31dbfd4e788f0efcbb0e6ab8264a12116aa672 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 7 Mar 2020 23:40:57 +0100 Subject: xmonad brightness handling --- xmonad.hs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'xmonad.hs') diff --git a/xmonad.hs b/xmonad.hs index eb9edb3..d64f95b 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -27,9 +27,6 @@ myStartupHook = do 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 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 From 66c963bb41213bc09dac88b201ba67ba4d0835ad Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 28 Mar 2020 22:25:24 +0100 Subject: Added vim pluggin: quick-scope --- xmonad.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xmonad.hs') diff --git a/xmonad.hs b/xmonad.hs index 99a35e8..90c536e 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -21,8 +21,10 @@ main = do , startupHook = myStartupHook } `additionalKeysP` myKeys -myLayouts = tiled ||| Mirror tiled ||| noBorders Full - where tiled = Tall 1 (3 / 100) (3 / 5) +myLayouts = tiledBigMaster ||| Mirror tiledEven ||| noBorders Full + where tiledBigMaster = Tall 1 (3 / 100) (3 / 5) + tiledEven = Tall 1 (3 / 100) (1 / 2) + myStartupHook = do spawnOnce "redshift -c /home/charles/.config/redshift.conf &" -- cgit From 36c19a33127316bea52d46130d53035a328eb1c5 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 26 Apr 2020 08:33:18 +0200 Subject: Change colorscheme to solarized and switched to st --- xmonad.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmonad.hs') diff --git a/xmonad.hs b/xmonad.hs index 90c536e..5535420 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -12,7 +12,7 @@ import XMonad.Layout.NoBorders main = do xmonad $ desktopConfig { modMask = mod4Mask -- mod key to super - , terminal = "konsole" + , terminal = "st" , borderWidth = 1 , focusFollowsMouse = False -- don't change window based on mouse position (need to click) , normalBorderColor = "#292d3e" -- cgit From b46a4a75b85b888db3e3a70445f9724460375e6f Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 26 Apr 2020 11:52:38 +0200 Subject: More logical order for xmonad new window --- xmonad.hs | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'xmonad.hs') diff --git a/xmonad.hs b/xmonad.hs index 5535420..5420664 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -8,6 +8,9 @@ import XMonad.Util.EZConfig(additionalKeysP) -- Layouts import XMonad.Layout.NoBorders +-- Hooks +import XMonad.Hooks.InsertPosition + main = do xmonad $ desktopConfig @@ -19,20 +22,24 @@ main = do , focusedBorderColor = "#bbc5ff" , layoutHook = myLayouts , startupHook = myStartupHook + , manageHook = myManageHook } `additionalKeysP` myKeys -myLayouts = tiledBigMaster ||| Mirror tiledEven ||| noBorders Full +myLayouts = tiledBigMaster -- bigger master for code and smaller slave for compiling + ||| Mirror tiledEven -- 50/50 horizontal split + ||| noBorders Full -- disable borders for fullscreen layout where tiledBigMaster = Tall 1 (3 / 100) (3 / 5) tiledEven = Tall 1 (3 / 100) (1 / 2) - 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") + spawnOnce "redshift -c /home/charles/.config/redshift.conf &" -- start redshift + spawnOnce "xinput disable 'ETPS/2 Elantech Touchpad' &" -- disable touchpad + +myManageHook = insertPosition End Newer -- insert new window at the end of the current layout + +myKeys = [ ("", spawn "pulseaudio-ctl up") -- volume up + , ("", spawn "pulseaudio-ctl down") -- volume down + , ("", spawn "pulseaudio-ctl mute") -- volume mute + , ("", spawn "xbacklight -inc 5") -- backlight up + , ("", spawn "xbacklight -dec 5") -- backlight down ] -- cgit