1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Merge remote-tracking branch 'origin/master' into surface

This commit is contained in:
Joe Groocock 2018-04-12 03:32:07 +01:00
commit f03b3ee8df
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86
14 changed files with 122 additions and 46 deletions

View File

@ -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

View File

@ -1,44 +1,58 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="weak">
<test name="family"><string>Noto Sans</string></test>
<edit name="family" mode="assign" binding="strong">
<string>NotoSans Nerd Font</string>
</edit>
</match>
<match>
<test name="family"><string>Noto Serif</string></test>
<edit name="family" mode="assign" binding="strong">
<string>NotoSerif Nerd Font</string>
</edit>
</match>
<match>
<test name="family"><string>Source Code Pro</string></test>
<edit name="family" mode="assign" binding="strong">
<string>SauceCodePro Nerd Font</string>
</edit>
</match>
<match>
<test qual="any" name="family"><string>sans-serif</string></test>
<edit name="family" mode="prepend" binding="same">
<string>NotoSans Nerd Font</string>
<string>Noto Sans</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match target="font">
<test qual="all" name="family" compare="eq"><string>Noto Sans</string></test>
<edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
</match>
<match>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="weak">
<test qual="any" name="family"><string>serif</string></test>
<edit name="family" mode="prepend" binding="same">
<string>NotoSerif Nerd Font</string>
<string>Noto Serif</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="weak">
<string>Sauce Code Pro</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family">
<string>Apple Color Emoji</string>
</test>
<edit name="family" mode="prepend" binding="weak">
<test qual="any" name="family"><string>monospace</string></test>
<edit name="family" mode="prepend" binding="same">
<string>SauceCodePro Nerd Font Mono</string>
<string>Source Code Pro</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match target="font">
<edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>
<test qual="all" name="family" compare="eq"><string>SauceCodePro Nerd Font Mono</string></test>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
</fontconfig>

16
.config/procps/toprc Normal file
View File

@ -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¨³´»½@·º¹56ÄFÅ')*+,-./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=¥º»<½¾¿ÀÁMBNÃD34·Å&'()*+,-./0125689FGHIJKLOPQRSTUVWXYZ[\]^_`abcdefghij
winflags=163124, sortindx=21, maxtasks=0, graph_cpus=2, graph_mems=0
summclr=5, msgsclr=5, headclr=4, taskclr=5
Usr fieldscur=¥¦§¨ª°¹·ºÄÅ)+,-./1234568;<=>?@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

View File

@ -1,5 +1,5 @@
[options]
font = SauceCodePro 9.8
font = Source Code Pro 9.8
scrollback_lines = 1000000
cursor_blink = off
size_hints = true

View File

@ -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="\<space>"
" 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 <leader><space> :NERDTreeToggle<CR>
map <leader><tab> :NERDTreeToggle<CR>
" FZF configurationn
map <leader><tab> :Files<CR>
map <leader><space> :Files<CR>
map <leader>b :Buffers<CR>
map <leader>l :Lines<CR>
" 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

View File

@ -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"

View File

@ -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
}