all repos — dotfiles @ 7b6ffb4b2045380d8e785a15418187b601274023

linux dotfiles

Update i3/config, bashrc, vimrc, packages.txt...

...and note script
- bashrc : added cheat.sh function
- vimrc : changed cp to cm for compiling; added fzf plugin
- i3/config dmenu args variable
...idc
prithugoswami prithugoswami524@gmail.com
Sun, 12 May 2019 22:31:32 +0530
commit

7b6ffb4b2045380d8e785a15418187b601274023

parent

2c82085267aa7fa6218ee3cf2c890889802ca505

5 files changed, 37 insertions(+), 10 deletions(-)

jump to
M .bashrc.bashrc

@@ -35,6 +35,11 @@ s(){

cd "$(dirname "$(fzf)")" } +# cheat.sh +cheat(){ + curl -s cheat.sh/$1 +} + alias t="task" alias todo="task modify -in"
M .vimrc.vimrc

@@ -16,16 +16,20 @@ " load filetype-specific indent files

filetype plugin indent on " compiling for different file types -" autocmd FileType markdown nnoremap cp :w<Enter>:!pandoc -f gfm -V geometry=margin=0.75in --resource-path="expand('%:p:h')/img" -V links-as-notes -o %.pdf %<Enter><Enter> -autocmd FileType markdown nnoremap cp :w<Enter>:!pandoc -f markdown -V geometry=margin=0.75in -V papersize=A4 -o pdf/%.pdf %<Enter><Enter> -autocmd FileType tex nnoremap cp :w<Enter>:!pdflatex -interaction nonstopmode % 1&>/dev/null<Enter><Enter> +" autocmd FileType markdown nnoremap cm :w<Enter>:!pandoc -f gfm -V geometry=margin=0.75in --resource-path="expand('%:p:h')/img" -V links-as-notes -o %.pdf %<Enter><Enter> +autocmd FileType markdown nnoremap cm :w<Enter>:!pandoc -f markdown -V geometry=margin=0.75in -V papersize=A4 -o pdf/%.pdf %<Enter><Enter> +autocmd FileType tex nnoremap cm :w<Enter>:!pdflatex -interaction nonstopmode % 1&>/dev/null<Enter><Enter> autocmd FileType html setlocal ts=2 sts=2 sw=2 " autocmd FileType c nnoremap cp :w<Enter>:!clear && gcc % && ./a.out<Enter> autocmd BufRead *.pdentry :Goyo +" leader is comma +let mapleader="," + " QuickFix Navigation nnoremap cn :cn<CR> nnoremap cN :cN<CR> + " colorscheme hybrid_reverse set background=dark

@@ -83,8 +87,8 @@ nnoremap <C-k> <C-W><C-K>

nnoremap <C-h> <C-W><C-H> nnoremap <C-l> <C-W><C-L> -" leader is comma -let mapleader="," +nnoremap <unique> <C-_> :FZF<CR> +nnoremap <unique> <C-B> :Buffers<CR> " jk is escape inoremap jk <esc>
M bin/scripts/notebin/scripts/note

@@ -9,7 +9,8 @@ [ $? -ne 0 ] && exit;

fi case $output in - +) echo -n "" | dmenu -h 23 -p note >> $remind_path;; + +) echo -n "" | dmenu -nb "#000" -sb "#FFF"\ + -sf "#000" -h 23 -p note >> $remind_path;; *) ans=$(echo -e "no\nyes" | dmenu -h 23 -p "Delete?") if [ $ans = "yes" ]; then sed -i "/$output/d" $remind_path
M i3/configi3/config

@@ -126,7 +126,7 @@ #}}}

## Window Decorations ##{{{ # class border backgr. text indic. child_border - client.focused #ffffff #ffffff $arc_white + client.focused $arc_dark_blue $arc_dark_blue $arc_white client.focused_inactive $arc_darker_blue $arc_darker_blue $arc_white client.unfocused $arc_darker_blue $arc_darker_blue $arc_grey client.urgent $arc_red $arc_red $arc_white

@@ -157,12 +157,16 @@ #}}}

### Application Launcher Key Bindings ###{{{ +set $dmenu_args -nb "#000" -sb "#FFF" -sf "#000" -h 20 + bindsym $mod+Return exec --no-startup-id st bindsym $mod+Shift+Return exec --no-startup-id samedir bindsym $mod+b exec st -e "nnn" bindsym $mod+Ctrl+b exec terminal -e 'bmenu' # bindsym $mod+d exec "rofi -show run -lines 3 -padding 25" -bindsym $mod+d exec --no-startup-id `cat .config/launcher | dmenu -nb "#000" -sb "#FFF" -sf "#000" -h 23` +# bindsym $mod+d exec --no-startup-id `cat .config/launcher | dmenu -nb "#000" -sb "#FFF" -sf "#000" -h 20` +bindsym $mod+d exec --no-startup-id `cat .config/launcher | dmenu $dmenu_args` +bindsym $mod+i exec --no-startup-id clipmenu $dmenu_args -l 15 # Desktop application launcher #bindsym $mod+Shift+d exec --no-startup-id "rofi -show drun" bindsym $mod+Shift+d exec --no-startup-id "runa -a"

@@ -497,8 +501,9 @@ bar {

i3bar_command i3bar status_command i3blocks position top - font pango:Roboto 10 - separator_symbol " ╱ " + font pango:Hack 9 + # separator_symbol " ╱ " + separator_symbol "|" bindsym button 4 workspace prev bindsym button 5 workspace next
M packages.txtpackages.txt

@@ -1,3 +1,8 @@

+vim +i3 +arandr +xrandr +aspell arc-gtk-theme papirus-icon-theme rofi

@@ -5,6 +10,7 @@ rclone

feh mpv mediainfo +bless neofetch zathura zathura-pdf-poppler

@@ -21,6 +27,12 @@ pandoc

texlive-core cmus nethogs +dmenu +dmenu_run +clipmenu +clipnotify +runa +llpp --------------------- AUR