aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-26 11:52:38 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-26 11:52:38 +0200
commitb46a4a75b85b888db3e3a70445f9724460375e6f (patch)
tree3ac4903d18486257156a2514e8863ceddde2bc53
parent36c19a33127316bea52d46130d53035a328eb1c5 (diff)
downloaddotfiles-b46a4a75b85b888db3e3a70445f9724460375e6f.tar.gz
dotfiles-b46a4a75b85b888db3e3a70445f9724460375e6f.tar.bz2
dotfiles-b46a4a75b85b888db3e3a70445f9724460375e6f.zip
More logical order for xmonad new window
-rw-r--r--.pluggins.vim2
-rw-r--r--.zsh_aliases3
-rw-r--r--xmonad.hs27
3 files changed, 20 insertions, 12 deletions
diff --git a/.pluggins.vim b/.pluggins.vim
index d3f66ea..e57ec19 100644
--- a/.pluggins.vim
+++ b/.pluggins.vim
@@ -5,6 +5,7 @@ call plug#begin()
Plug 'tomtom/tcomment_vim' " mininal commenter
Plug 'itchyny/lightline.vim' " minimal status bar
Plug 'sheerun/vim-polyglot' " better syntax highlight
+ Plug 'romainl/vim-cool' " disable highlight after search
" s19 at home
Plug 'pbondoer/vim-42header' " 42 header
@@ -16,6 +17,5 @@ call plug#begin()
" intresting but not used
" Plug 'unblevable/quick-scope' " highlight first char to jump to word
- " Plug 'romainl/vim-cool' " disable highlight after search
" Plug 'justinmk/vim-syntax-extra' " better syntax highlight
call plug#end()
diff --git a/.zsh_aliases b/.zsh_aliases
index 2ae7101..fd2ec8b 100644
--- a/.zsh_aliases
+++ b/.zsh_aliases
@@ -14,6 +14,7 @@ alias v="vim"
alias mkdir="mkdir -p"
alias gdb="gdb -q" # disable long intro message
alias sudo="sudo " # enable color (the search for aliases continues)
+alias m="make"
# ls
alias ll="ls -lFh"
@@ -29,7 +30,7 @@ alias t3="tree -L 3"
alias treeI="tree -I '__pycache__' -I '*.o' -I vendor"
# man
-alias m="man"
+alias m1="man 1"
alias m2="man 2"
alias m3="man 3"
alias manv="man -P 'vim -M +MANPAGER -'" # vim has man pager
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 = [ ("<XF86AudioRaiseVolume>", spawn "pulseaudio-ctl up")
- , ("<XF86AudioLowerVolume>", spawn "pulseaudio-ctl down")
- , ("<XF86AudioMute>", spawn "pulseaudio-ctl mute")
- , ("<XF86MonBrightnessUp>", spawn "xbacklight -inc 5")
- , ("<XF86MonBrightnessDown>", 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 = [ ("<XF86AudioRaiseVolume>", spawn "pulseaudio-ctl up") -- volume up
+ , ("<XF86AudioLowerVolume>", spawn "pulseaudio-ctl down") -- volume down
+ , ("<XF86AudioMute>", spawn "pulseaudio-ctl mute") -- volume mute
+ , ("<XF86MonBrightnessUp>", spawn "xbacklight -inc 5") -- backlight up
+ , ("<XF86MonBrightnessDown>", spawn "xbacklight -dec 5") -- backlight down
]