Merge branch 'master' of github.com:lytedev/dotfiles
This commit is contained in:
commit
cb414f59ea
8 changed files with 34 additions and 9 deletions
|
@ -78,6 +78,7 @@ Plug 'michaeljsmith/vim-indent-object' " adds an indentation level text object
|
||||||
Plug 'wellle/targets.vim' " adds some more handy text objects
|
Plug 'wellle/targets.vim' " adds some more handy text objects
|
||||||
Plug 'ternjs/tern_for_vim', { 'do': 'npm install' }
|
Plug 'ternjs/tern_for_vim', { 'do': 'npm install' }
|
||||||
Plug 'mikewest/vimroom'
|
Plug 'mikewest/vimroom'
|
||||||
|
Plug 'editorconfig/editorconfig-vim' " loads project-specific editor settings
|
||||||
let g:vimroom_sidebar_height = 0
|
let g:vimroom_sidebar_height = 0
|
||||||
|
|
||||||
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} " fuzzy file finding
|
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} " fuzzy file finding
|
||||||
|
@ -130,7 +131,7 @@ autocmd BufNewFile,BufReadPost *.txt setl spell textwidth=0 wrapmargin=0
|
||||||
set tabstop=2
|
set tabstop=2
|
||||||
set shiftwidth=2
|
set shiftwidth=2
|
||||||
set softtabstop=2
|
set softtabstop=2
|
||||||
set noexpandtab
|
set expandtab
|
||||||
set autoindent smartindent
|
set autoindent smartindent
|
||||||
set list
|
set list
|
||||||
set nostartofline
|
set nostartofline
|
||||||
|
@ -342,10 +343,18 @@ vmap Q gq
|
||||||
nmap Q gqap
|
nmap Q gqap
|
||||||
|
|
||||||
" launch fzf for the current git repo
|
" launch fzf for the current git repo
|
||||||
nnoremap <C-P> :GitFiles<CR>
|
nnoremap <C-p> :GitFiles<CR>
|
||||||
|
|
||||||
" super fancy buffer switching
|
" launch fzf for files in the current directory
|
||||||
nnoremap <leader>l :ls<CR>:b<space>
|
nnoremap <C-o> :Files<CR>
|
||||||
|
|
||||||
|
" launch fzf for files modified or not in git
|
||||||
|
nnoremap <C-u> :GFiles?<CR>
|
||||||
|
|
||||||
|
" launch fzf for open buffers (files)
|
||||||
|
nnoremap <leader>l :Buffers<CR>
|
||||||
|
|
||||||
|
" switch to previous buffer
|
||||||
nnoremap <leader>h :b#<CR>
|
nnoremap <leader>h :b#<CR>
|
||||||
|
|
||||||
" use leader j and k to switch buffers as well
|
" use leader j and k to switch buffers as well
|
||||||
|
|
2
env/sh/aliases
vendored
2
env/sh/aliases
vendored
|
@ -40,7 +40,7 @@ alias tmnew="tmux new -s"
|
||||||
alias tmls="tmux list-sessions"
|
alias tmls="tmux list-sessions"
|
||||||
alias tmatt="tmux attach -t"
|
alias tmatt="tmux attach -t"
|
||||||
alias tu="tmux attach -t utils || tmux new -s utils"
|
alias tu="tmux attach -t utils || tmux new -s utils"
|
||||||
alias tdf="tmux attach -t df || tmux new -s utils -c \"$DOTFILES_PATH\""
|
alias tdf="tmux attach -t df || tmux new -s df -c \"$DOTFILES_PATH\""
|
||||||
|
|
||||||
# git aliases
|
# git aliases
|
||||||
alias gs="git status"
|
alias gs="git status"
|
||||||
|
|
6
env/wm/sxhkdrc
vendored
6
env/wm/sxhkdrc
vendored
|
@ -153,8 +153,8 @@ super + shift + t
|
||||||
compton-trans -c -o 100
|
compton-trans -c -o 100
|
||||||
|
|
||||||
# swap sxhkx config with an alternate file and reload the new one
|
# swap sxhkx config with an alternate file and reload the new one
|
||||||
super + shift + alt + ctrl + r
|
# super + shift + alt + ctrl + r
|
||||||
if [ -e ~/.config/sxhkd/altsxhkdrc ]; then mv ~/.config/sxhkd/sxhkdrc ~/.config/sxhkd/origsxhkdrc && mv ~/.config/sxhkd/altsxhkdrc ~/.config/sxhkd/sxhkdrc && pkill -USR1 -x sxhkd; fi
|
# if [ -e ~/.config/sxhkd/altsxhkdrc ]; then mv ~/.config/sxhkd/sxhkdrc ~/.config/sxhkd/origsxhkdrc && mv ~/.config/sxhkd/altsxhkdrc ~/.config/sxhkd/sxhkdrc && pkill -USR1 -x sxhkd; fi
|
||||||
|
|
||||||
# spawn a terminal
|
# spawn a terminal
|
||||||
super + Return
|
super + Return
|
||||||
|
@ -170,7 +170,7 @@ super + space
|
||||||
|
|
||||||
# lock the desktop
|
# lock the desktop
|
||||||
super + ctrl + shift + l
|
super + ctrl + shift + l
|
||||||
slock
|
$SHELL -c '$DOTFILES_PATH/env/x/screensaver/lock.sh'
|
||||||
|
|
||||||
# spawn gui file explorer
|
# spawn gui file explorer
|
||||||
super + e
|
super + e
|
||||||
|
|
9
env/x/screensaver/lock.sh
vendored
Executable file
9
env/x/screensaver/lock.sh
vendored
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
source "$DOTFILES_PATH/variables.bash"
|
||||||
|
|
||||||
|
scrot "$IMG_PATH/.lock/.lock-bg-img.png"
|
||||||
|
convert "$IMG_PATH/.lock/.lock-bg-img.png" -blur 0x12 "$IMG_PATH/.lock/.lock-bg-img_blurred.png"
|
||||||
|
rm "$IMG_PATH/.lock/.lock-bg-img.png"
|
||||||
|
# xscreensaver-command --lock
|
||||||
|
i3lock -i "$IMG_PATH/.lock/.lock-bg-img_blurred.png"
|
5
env/x/screensaver/setup.sh
vendored
Executable file
5
env/x/screensaver/setup.sh
vendored
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
source "$DOTFILES_PATH/variables.bash"
|
||||||
|
|
||||||
|
mkdir -p "$IMG_PATH/.lock"
|
|
@ -51,6 +51,7 @@ pacaur -S \
|
||||||
qt5-webengine \
|
qt5-webengine \
|
||||||
ruby \
|
ruby \
|
||||||
xorg-xbacklight \
|
xorg-xbacklight \
|
||||||
|
i3lock-blur \
|
||||||
--noconfirm --noedit
|
--noconfirm --noedit
|
||||||
|
|
||||||
# sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/chrome
|
# sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/chrome
|
||||||
|
|
|
@ -5,5 +5,5 @@ source $DIR/variables.bash
|
||||||
|
|
||||||
pacaur -S \
|
pacaur -S \
|
||||||
mopidy mopidy-spotify mopidy-gmusic \
|
mopidy mopidy-spotify mopidy-gmusic \
|
||||||
ncmpcpp mpd \
|
ncmpcpp mpd mpc \
|
||||||
--noconfirm --noedit
|
--noconfirm --noedit
|
||||||
|
|
|
@ -22,6 +22,7 @@ export BLACKLISTED_BAR_MODULES=""
|
||||||
# than a little bit ashamed
|
# than a little bit ashamed
|
||||||
# TODO: use /tmp ?
|
# TODO: use /tmp ?
|
||||||
export REPOSITORY_PATH="$NICE_HOME/code/open-source"
|
export REPOSITORY_PATH="$NICE_HOME/code/open-source"
|
||||||
|
export IMG_PATH="$NICE_HOME/img"
|
||||||
|
|
||||||
# the width of the border around the bspwm windows
|
# the width of the border around the bspwm windows
|
||||||
export BORDER_WIDTH=0
|
export BORDER_WIDTH=0
|
||||||
|
|
Reference in a new issue