diff --git a/.Xresources b/.Xresources index 13b5f8e..9d0723f 100755 --- a/.Xresources +++ b/.Xresources @@ -53,7 +53,7 @@ urxvt.color15: #eeeeec !https://unix.stackexchange.com/questions/232881/urxvt-change-background-color-on-the-fly URxvt*keysym.Control-Shift-F9: command:\033]10;#1d1f21\007\ - \033]11;#ffffff\007\ + \033]11;#fffff0\007\ \033]12;#000000\007\ \033]4;0;#282a2e\007\ \033]4;1;#a54242\007\ @@ -71,7 +71,7 @@ URxvt*keysym.Control-Shift-F9: command:\033]10;#1d1f21\007\ \033]4;13;#b294bb\007\ \033]4;14;#8abeb7\007\ \033]4;15;#000000\007 -urxvt*keysym.Control-Shift-F10: command:\033]11;rgba:0000/0000/0000/5555\007\ +urxvt*keysym.Control-Shift-F10: command:\033]11;#00000f\007\ \033]10;#dcdcdc\007\ \033]12;#dcdcdc\007\ \033]4;0;#3f3f3f\007\ diff --git a/.config/cmus/autosave b/.config/cmus/autosave index 74ca091..00f70fd 100644 --- a/.config/cmus/autosave +++ b/.config/cmus/autosave @@ -94,7 +94,7 @@ set passwd= set pl_sort= set play_library=true set play_sorted=false -set repeat=true +set repeat=false set repeat_current=false set replaygain=disabled set replaygain_limit=true diff --git a/.config/i3/config b/.config/i3/config index 9eaa1ba..e2b78ab 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -226,6 +226,9 @@ for_window [title="^Emulator$"] move scratchpad for_window [title="Android Emulator - thePhone:5554"] resize set 375 667 for_window [title="Android Emulator*"] scratchpad show +focus_on_window_activation none +no_focus [class="qpdfview"] + #client.focused #00eb00 #00eb00 #00eb00 #00eb00 #client.focused_inactive #ff14ff #ff14ff #ffffff #484e50 #client.unfocused #ffffff #ff14ff #888888 #292d2e diff --git a/.config/i3/i3blocks.conf b/.config/i3/i3blocks.conf index a4ea2f8..a262230 100644 --- a/.config/i3/i3blocks.conf +++ b/.config/i3/i3blocks.conf @@ -9,6 +9,16 @@ #interval=3600 #color=#A4C2F4 +[tun0] +command=~/.config/i3/scripts/ifstats.sh tun0 +interval=10 +color=#91E78B + +[wlp3s0] +command=~/.config/i3/scripts/ifstats.sh wlp3s0 +interval=10 +color=#A4C2F4 + [notifications] full_text=available command=~/.config/i3/scripts/togglenotify.sh diff --git a/.config/i3/scripts/screenrec.sh b/.config/i3/scripts/screenrec.sh index 69c8863..fb883eb 100755 --- a/.config/i3/scripts/screenrec.sh +++ b/.config/i3/scripts/screenrec.sh @@ -1,2 +1,2 @@ #!/bin/sh -ffmpeg -y -threads 4 -i /dev/video2 -vcodec mpeg4 MP4/`date +%s`.mp4 +ffmpeg -y -threads 4 -i /dev/video2 -vcodec mpeg4 -b:v 800k MP4/`date +%s`.mp4 diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 7108347..00fb3c3 100755 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -169,6 +169,9 @@ command! reload :write | restart " You can also add %CLEAR if you want to clear screen before running FUSE " program. +" TeX +filextype *.tex vimtex %f &> /dev/null & + filextype *.jpg.gpg gpg -qd %f | imv - " Pdf diff --git a/.scripts/emulator.sh b/.scripts/emulator.sh index 01f7a5a..732e0f5 100755 --- a/.scripts/emulator.sh +++ b/.scripts/emulator.sh @@ -1,5 +1,13 @@ #!/bin/zsh -#emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-boot-anim -no-snapshot-load -emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-snapshot-load -#emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-boot-anim -no-window +##emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-boot-anim -no-snapshot-load +#emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-snapshot-load +##emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-boot-anim -no-window +#adb kill-server + +export ANDROID_SDK=/opt/android-sdk-update-manager +export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH + +emulator -accel on -avd thePhone -gpu host -no-boot-anim -no-audio -no-skin -cores 4 -no-snapshot-load + adb kill-server + diff --git a/.vimrc b/.vimrc index 69558d0..56f5515 100644 --- a/.vimrc +++ b/.vimrc @@ -108,8 +108,8 @@ map :call ShowFuncName() "https://stackoverflow.com/questions/1054701/get-ctags-in-vim-to-go-to-definition-not-declaration if has("cscope") - set csto=0 - set cst + set csto=0 + set cst set nocsverb " add any database in current directory if filereadable("cscope.out") @@ -196,21 +196,13 @@ set grepprg=grep\ -nH\ $* set modelineexpr +let g:Tex_DefaultTargetFormat = "pdf" +let g:Tex_ViewRule_pdf = "qpdfview" +"let g:Tex_ViewRule_pdf = "zathura" + let g:tex_flavor='latex' let g:Tex_GotoError=0 -let g:Tex_Com_mjax = "\\(<++>\\)<++>" -let g:Tex_Com_eq = "$$<++>$$<++>" -let g:Tex_Com_cal = "\\mathcal{<++>}<++>" -let g:Tex_Com_bb = "\\mathbb{<++>}<++>" -let g:Tex_Com_bf = "\\mathbf{<++>}<++>" -let g:Tex_Com_bm = "\begin{bmatrix}<++>\end{bmatrix}<++>" -let g:Tex_Com_vm = "\begin{vmatrix}<++>\end{vmatrix}<++>" -let g:Tex_Com_std = "\\title{}\n\\author{}\n\\date{}\n\\documentclass[a4paper," - \ . "notitlepage]{report}\n\\usepackage[pdftex]{graphicx}\n" - \ . "\\usepackage{amssymb}\n\\usepackage{amsmath}\n" - \ . "\\begin{document}\n\\maketitle\n\<++>\n\\end{document}" - autocmd BufNewFile,BufRead *.tex set syntax=plaintex autocmd BufNewFile,BufRead *.tex syntax match Comment "%.*" autocmd BufNewFile,BufRead *.tex set textwidth=80 @@ -218,14 +210,12 @@ autocmd BufNewFile,BufRead *.tex let g:syntastic_auto_jump = 0 imap :let b:Imap_FreezeImap = 1 imap :let b:Imap_FreezeImap = 0 -imap :w:!pdflatex % -"nmap :w:!pdflatex --shell-escape % -nmap :w:!pdflatex % -nmap :!zathura $(basename % .tex).pdf & imap :w:!biber -E utf8 $(basename % .tex) nmap :w:!biber -E utf8 $(basename % .tex) -imap +map :execute escape(":!qpdfview --quiet --unique $(basename % .tex).pdf $(basename % .tex).pdf#src:%:" . line('.') . ":" . col('.') . " &", '#') + +imap imap Tex_InsertItemOnThisLine imap Tex_LeftRight imap Tex_MathCal diff --git a/.zlogin b/.zlogin index 39527e3..65d1da6 100644 --- a/.zlogin +++ b/.zlogin @@ -4,6 +4,7 @@ alias vv="vi -S" alias tt="tmux attach" alias ll="ls -al" alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' +alias vimtex="vim --servername vimtex" if [ -v SSH_AGENT_PID ]; then #echo "ssh-agent up and running.";