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 --- .pluggins.vim | 2 +- .vimrc | 3 +-- .xinitrc | 2 ++ .zprofile | 3 +++ .zsh_aliases | 2 +- install.sh | 3 +++ xmonad.hs | 14 +++----------- 7 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 .xinitrc create mode 100755 .zprofile diff --git a/.pluggins.vim b/.pluggins.vim index c3951a5..796473a 100644 --- a/.pluggins.vim +++ b/.pluggins.vim @@ -1,6 +1,6 @@ " plugins call plug#begin() - Plug 'joshdick/onedark.vim' " theme + Plug 'dracula/vim' " theme Plug 'ctrlpvim/ctrlp.vim' " Ctrl-P similar to vsc Plug 'tpope/vim-eunuch' " basic unix command in vim Plug 'tomtom/tcomment_vim' " mininal commenter diff --git a/.vimrc b/.vimrc index 9d7059e..14428ef 100644 --- a/.vimrc +++ b/.vimrc @@ -61,8 +61,7 @@ set wildignore=*/tmp/*,*.o,*.so,*.swp,*.zip,*/node_modules/*,*/vendor/*,.bundle/ let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] " colorscheme -let g:onedark_terminal_italics=1 -colorscheme onedark +colorscheme dracula let g:lightline = {} let g:lightline.colorscheme = 'one' " lightline theme to onedark diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..c3213b0 --- /dev/null +++ b/.xinitrc @@ -0,0 +1,2 @@ +redshift -c /home/charles/.config/redshift.conf & +exec xmonad diff --git a/.zprofile b/.zprofile new file mode 100755 index 0000000..7cebc9e --- /dev/null +++ b/.zprofile @@ -0,0 +1,3 @@ +if [[ "$(tty)" = "/dev/tty1" ]]; then + startx +fi diff --git a/.zsh_aliases b/.zsh_aliases index 6644105..37e213d 100644 --- a/.zsh_aliases +++ b/.zsh_aliases @@ -65,4 +65,4 @@ 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" diff --git a/install.sh b/install.sh index 4076d59..63298c6 100755 --- a/install.sh +++ b/install.sh @@ -21,6 +21,9 @@ ln -sf $DOTDIR/.gitconfig $HOME/.gitconfig [ ! -d $HOME/.config ] && mkdir $HOME/.config ln -sf $DOTDIR/redshift.conf $HOME/.config/redshift.conf +ln -sf $DOTDIR/.xinitrc $HOME/.xinitrc +ln -sf $DOTDIR/.zprofile $HOME/.zprofile + ################ # dependencies # ################ 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