diff --git a/.config/X11/xresources b/.config/X11/xresources index a00708e..924567b 100644 --- a/.config/X11/xresources +++ b/.config/X11/xresources @@ -59,11 +59,11 @@ xterm.metaSendsEscape: true urxvt.termName: xterm-256color -urxvt.font: xft:SauceCodePro Nerd Font:style=regular:size=9.8 -urxvt.imFont: xft:SauceCodePro Nerd Font:style=regular:size=9.8 -urxvt.boldFont: xft:SauceCodePro Nerd Font:style=bold:size=9.8 -urxvt.italicFont: xft:SauceCodePro Nerd Font:style=italic:size=9.8 -urxvt.boldItalicFont: xft:SauceCodePro Nerd Font:style=bold,italic:size=9.8 +urxvt.font: xft:Source Code Pro:style=regular:size=9.8 +urxvt.imFont: xft:Source Code Pro:style=regular:size=9.8 +urxvt.boldFont: xft:Source Code Pro:style=bold:size=9 +urxvt.italicFont: xft:Source Code Pro:style=italic:size=9.8 +urxvt.boldItalicFont: xft:Source Code Pro:style=bold,italic:size=9.8 urxvt.iso14755: false diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index 911a4a5..b3bd712 100644 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -1,44 +1,58 @@ + - - sans-serif - - + Noto Sans + + NotoSans Nerd Font + + + + Noto Serif + + NotoSerif Nerd Font + + + + Source Code Pro + + SauceCodePro Nerd Font + + + + + sans-serif + + NotoSans Nerd Font Noto Sans Noto Color Emoji + + Noto Sans + hintnone + - - serif - - + serif + + NotoSerif Nerd Font Noto Serif Noto Color Emoji - - monospace - - - Sauce Code Pro - Noto Color Emoji - - - - - Apple Color Emoji - - + monospace + + SauceCodePro Nerd Font Mono + Source Code Pro Noto Color Emoji - - hintfull - + SauceCodePro Nerd Font Mono + hintfull + lcddefault + rgb diff --git a/.config/procps/toprc b/.config/procps/toprc new file mode 100644 index 0000000..16eab70 --- /dev/null +++ b/.config/procps/toprc @@ -0,0 +1,16 @@ +top's Config File (Linux processes with windows) +Id:i, Mode_altscr=0, Mode_irixps=0, Delay_time=0.100, Curwin=0 +Def fieldscur=&K@56F')*+,-./0128<>?ABCGHIJLMNOPQRSTUVWXYZ[\]^_`abcdefghij + winflags=163638, sortindx=21, maxtasks=0, graph_cpus=1, graph_mems=1 + summclr=1, msgsclr=1, headclr=3, taskclr=1 +Job fieldscur=(Ļ@<)*+,-./012568>?ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij + winflags=163124, sortindx=0, maxtasks=0, graph_cpus=2, graph_mems=0 + summclr=6, msgsclr=6, headclr=7, taskclr=6 +Mem fieldscur=?@ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij + winflags=163124, sortindx=3, maxtasks=0, graph_cpus=2, graph_mems=0 + summclr=3, msgsclr=3, headclr=2, taskclr=3 +Fixed_widest=0, Summ_mscale=2, Task_mscale=1, Zero_suppress=0 + diff --git a/.config/termite/config b/.config/termite/config index 239d684..83ec4dc 100644 --- a/.config/termite/config +++ b/.config/termite/config @@ -1,5 +1,5 @@ [options] -font = SauceCodePro 9.8 +font = Source Code Pro 9.8 scrollback_lines = 1000000 cursor_blink = off size_hints = true diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 00dda28..0a701a3 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -1,10 +1,11 @@ set nocompatible " be iMproved, required " Reconfigure Vim to be clean! -set rtp+=~/.config/vim -set directory=.,~/.config/vim -set viminfo+=n~/.config/vim/viminfo -set directory=$HOME/.config/vim/swapfiles// +set undodir=$XDG_CACHE_HOME/vim/undo +set directory=$XDG_CACHE_HOME/vim/swap +set backupdir=$XDG_CACHE_HOME/vim/backup +set viminfo+='1000,n$XDG_CACHE_HOME/vim/viminfo +set runtimepath+=$XDG_CONFIG_HOME/vim,$VIMRUNTIME,$XDG_CONFIG_HOME/vim/after syntax enable filetype plugin on @@ -40,6 +41,7 @@ let mapleader="\" " Autosave settings function! SaveIfExist() if @% != "" && filereadable(@%) && !&readonly && &modified + SyntasticCheck write endif endfunction @@ -117,6 +119,7 @@ let g:ycm_semantic_triggers.tex = g:vimtex#re#youcompleteme "let g:vimtex_view_method='zathura' let g:tex_flavor='latex' let g:vimtex_indent_enabled = 0 " auto-indentation is wrong and annoying +let g:syntastic_tex_checkers = ['chktex'] autocmd FileType tex silent VimtexCompile autocmd FileType tex setlocal spell autocmd FileType tex TagbarOpen @@ -126,6 +129,14 @@ let g:Powerline_symbols = 'fancy' let g:airline_powerline_fonts = 1 let g:airline_theme='solarized' let g:airline#extensions#tabline#enabled = 1 +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open = 1 +let g:syntastic_check_on_wq = 0 + +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* " vim-markdown plugin let vim_markdown_preview_toggle=0 @@ -149,10 +160,12 @@ let g:tagbar_singleclick = 1 let g:tagbar_autopreview = 1 " NERDTree configuration -map :NERDTreeToggle +map :NERDTreeToggle " FZF configurationn -map :Files +map :Files +map b :Buffers +map l :Lines " Disable mouse set mouse=nicr @@ -250,7 +263,8 @@ if (exists("g:use_dvorak") && g:use_dvorak == 1) \ 'x': ['tsd', 'tsD'], \} - let NERDTreeMapOpenInTab='\t' + " NERDTree configuration + let NERDTreeMapOpenInTab='\t' " prevent t opening file endif diff --git a/.profile b/.profile index 27023e4..574b25c 100644 --- a/.profile +++ b/.profile @@ -18,8 +18,8 @@ export PATH="${PATH}:$DOTFILES/scripts:$HOME/.local/share/surface-scripts" # Allow Vim to load from ~/.config/vim export VIMDIR="$XDG_CONFIG_HOME/vim" -export MYVIMRC="$VIMDIR/vimrc" -export VIMINIT=":so $MYVIMRC" +export VIMRC="$VIMDIR/vimrc" +export VIMINIT=":so $VIMRC" export EDITOR="vim" export VISUAL="vim" diff --git a/fonts/SauceCodeProPatched/Sauce Code Pro Black Nerd Font Complete.ttf b/fonts/SauceCodeProPatched/Sauce Code Pro Black Nerd Font Complete.ttf deleted file mode 100644 index 1ea3412..0000000 Binary files a/fonts/SauceCodeProPatched/Sauce Code Pro Black Nerd Font Complete.ttf and /dev/null differ diff --git a/fonts/SauceCodeProPatched/Sauce Code Pro Bold Nerd Font Complete.ttf b/fonts/SauceCodeProPatched/Sauce Code Pro Bold Nerd Font Complete.ttf deleted file mode 100644 index 1b71341..0000000 Binary files a/fonts/SauceCodeProPatched/Sauce Code Pro Bold Nerd Font Complete.ttf and /dev/null differ diff --git a/fonts/SauceCodeProPatched/Sauce Code Pro ExtraLight Nerd Font Complete.ttf b/fonts/SauceCodeProPatched/Sauce Code Pro ExtraLight Nerd Font Complete.ttf deleted file mode 100644 index effe8ed..0000000 Binary files a/fonts/SauceCodeProPatched/Sauce Code Pro ExtraLight Nerd Font Complete.ttf and /dev/null differ diff --git a/fonts/SauceCodeProPatched/Sauce Code Pro Light Nerd Font Complete.ttf b/fonts/SauceCodeProPatched/Sauce Code Pro Light Nerd Font Complete.ttf deleted file mode 100644 index 0d4a5ba..0000000 Binary files a/fonts/SauceCodeProPatched/Sauce Code Pro Light Nerd Font Complete.ttf and /dev/null differ diff --git a/fonts/SauceCodeProPatched/Sauce Code Pro Medium Nerd Font Complete.ttf b/fonts/SauceCodeProPatched/Sauce Code Pro Medium Nerd Font Complete.ttf deleted file mode 100644 index 0fd7d67..0000000 Binary files a/fonts/SauceCodeProPatched/Sauce Code Pro Medium Nerd Font Complete.ttf and /dev/null differ diff --git a/fonts/SauceCodeProPatched/Sauce Code Pro Nerd Font Complete.ttf b/fonts/SauceCodeProPatched/Sauce Code Pro Nerd Font Complete.ttf deleted file mode 100644 index dffe5a6..0000000 Binary files a/fonts/SauceCodeProPatched/Sauce Code Pro Nerd Font Complete.ttf and /dev/null differ diff --git a/fonts/SauceCodeProPatched/Sauce Code Pro Semibold Nerd Font Complete.ttf b/fonts/SauceCodeProPatched/Sauce Code Pro Semibold Nerd Font Complete.ttf deleted file mode 100644 index e55a929..0000000 Binary files a/fonts/SauceCodeProPatched/Sauce Code Pro Semibold Nerd Font Complete.ttf and /dev/null differ diff --git a/scripts/rofi-emoji b/scripts/rofi-emoji index 90e695b..135f8e9 100755 --- a/scripts/rofi-emoji +++ b/scripts/rofi-emoji @@ -4,7 +4,7 @@ # century is about apparently... # # Requirements: -# rofi, xsel, xdotool, curl, xmllint +# rofi, xclip, xdotool, curl, xmllint # # Usage: # 1. Download all emoji @@ -21,10 +21,9 @@ # # Where to save the emojis file. -EMOJI_FILE="$HOME/.cache/emojis.txt" +EMOJI_FILE="${XDG_CACHE_DIR:-$HOME/.cache}/emojis.txt" # Urls of emoji to download. -# You can remove what you don't need. URLS=( 'https://emojipedia.org/people/' 'https://emojipedia.org/nature/' @@ -39,7 +38,9 @@ URLS=( function download() { - echo "" > "$EMOJI_FILE" + notify "$(basename "$0")" 'Downloading all emoji for your pleasure' + + echo -n > "$EMOJI_FILE" for url in "${URLS[@]}"; do echo "Downloading: $url" @@ -58,20 +59,51 @@ function download() { echo "$emojis" >> "$EMOJI_FILE" done + + notify "$(basename "$0")" "We're all set!" } +function toclip() { + xclip -i -selection primary + xclip -o -selection primary | xclip -i -selection clipboard +} + +function repeat() { + local rplc str="$1" count="$2" + rplc="$(printf "%${count}s")" + echo "${rplc// /"$str"}" +} + +function notify() { + if which notify-send 1>/dev/null 2>/dev/null; then + notify-send "$1" "$2" + fi +} function display() { emoji=$(cat "$EMOJI_FILE" | grep -v '#' | grep -v '^[[:space:]]*$') - line=$(echo "$emoji" | rofi -dmenu -i -p emoji -kb-custom-1 Ctrl+c $@) + update="⏫ Update emoji cache" + emoji=$(printf "$emoji\n$update") + line=$(echo "$emoji" | rofi -dmenu -i -p emoji -kb-custom-1 Ctrl+c -kb-row-tab '' -kb-row-select Tab $@) exit_code=$? + if [ "${line[@]}" == "$update" ]; then + download + exit 0 + fi + line=($line) + last=${line[${#line[@]}-1]} + + quantifier="${last:${#last}-1:1}" + echo "$quantifier" | egrep -q '^[0-9]+$' || quantifier=1 + emoijs="$(repeat "${line[0]}" "$quantifier")" if [ $exit_code == 0 ]; then - xdotool type --clearmodifiers "${line[0]}" + xdotool type --clearmodifiers "$emoijs" + echo -n "$emoijs" | xclip -i elif [ $exit_code == 10 ]; then - echo -n "${line[0]}" | xsel -i -b + echo -n "$emoijs" | xclip -i fi }