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 --- .vimrc | 2 ++ .zsh_aliases | 9 +++++++-- grep.vim | 4 ---- xmonad.hs | 32 ++++++++++++++++++-------------- 4 files changed, 27 insertions(+), 20 deletions(-) diff --git a/.vimrc b/.vimrc index ec90935..cc4fdad 100644 --- a/.vimrc +++ b/.vimrc @@ -94,6 +94,7 @@ nnoremap nnoremap nnoremap nnoremap +nnoremap s= = " }}} " common {{{ @@ -166,6 +167,7 @@ autocmd BufReadPre * :normal zMzi " filetype {{{ " real tab in c file for school projects +autocmd BufReadPre,BufNewFile *.h,*.c set filetype=c autocmd Filetype c setlocal noexpandtab " vim fold method to marker autocmd Filetype vim setlocal foldmethod=marker diff --git a/.zsh_aliases b/.zsh_aliases index 6644105..72b727f 100644 --- a/.zsh_aliases +++ b/.zsh_aliases @@ -18,7 +18,7 @@ alias sudo="sudo " # enable color (the search for aliases continues) # ls alias ll="ls -lFh" alias la="ls -a" -alias lla="ls -al" +alias lla="ls -alh" alias lss="ls -Ssh" # tree @@ -65,4 +65,9 @@ alias zshrc="vim $DOTFILES/.zshrc && source $DOTFILES/.zshrc" alias zshaliasrc="vim $DOTFILES/.zsh_aliases && source $DOTFILES/.zshrc" alias vimrc="vim $DOTFILES/.vimrc" alias vimplugrc="vim $DOTFILES/.pluggins.vim" -alias xmonadrc="vim $DOTFILES/xmonad.hs && cp $DOTFILES/xmonad.hs $HOME/.xmonad/xmonad.hs" +alias xmonadrc="vim $DOTFILES/xmonad.hs" + +# parent directory jump +alias ..='cd ..' +alias ...='cd ../..' +alias ....='cd ../../..' diff --git a/grep.vim b/grep.vim index 625dfa1..32181f7 100644 --- a/grep.vim +++ b/grep.vim @@ -19,9 +19,5 @@ function! s:GrepOp(type) let @@ = saved endfunction - -" nnoremap gw :silent grep -R .:copen -" nnoremap gW :silent execute "grep! -R " . shellescape(expand("")) . " .":copen - nnoremap gn :cnext nnoremap gp :cprevious 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