From db834c2d0dddd661ff5fe5b9c329809642eadf9d Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Tue, 20 Nov 2018 15:13:51 +0100 Subject: [PATCH] White Theme and vim Wordbook --- config/.Xresources | 38 +++---- config/.config/i3/config | 14 +-- config/.config/polybar/config | 10 +- emacs/.emacs.d/config.org | 3 +- vim/.vim/.netrwhist | 4 +- vim/.vim/ftplugin/md.vim | 4 +- vim/.vim/ftplugin/python.vim | 17 +++ vim/.vim/ftplugin/tex.vim | 21 +++- vim/.vim/spell/de.utf-8.add | 185 ++++++++++++++++++++++++++++++++ vim/.vim/spell/de.utf-8.add.spl | Bin 560 -> 3610 bytes vim/.vimrc | 5 +- vim/bundle/Vundle.vim | 1 - vim/bundle/vim-multiple-cursors | 1 - vim/bundle/vim-pandoc | 1 - vim/bundle/vim-pandoc-syntax | 1 - zsh/.zshrc | 18 ++-- 16 files changed, 269 insertions(+), 54 deletions(-) create mode 100644 vim/.vim/ftplugin/python.vim delete mode 160000 vim/bundle/Vundle.vim delete mode 160000 vim/bundle/vim-multiple-cursors delete mode 160000 vim/bundle/vim-pandoc delete mode 160000 vim/bundle/vim-pandoc-syntax diff --git a/config/.Xresources b/config/.Xresources index 6287508..b3ecf87 100644 --- a/config/.Xresources +++ b/config/.Xresources @@ -1,37 +1,37 @@ ! special -*.foreground: #f8f8f2 -*.background: #272822 -*.cursorColor: #f8f8f2 +*.foreground: #444444 +*.background: #eeeeee +*.cursorColor: #444444 ! black -*.color0: #272822 -*.color8: #75715e +*.color0: #eeeeee +*.color8: #bcbcbc ! red -*.color1: #f92672 -*.color9: #f92672 +*.color1: #af0000 +*.color9: #d70000 ! green -*.color2: #a6e22e -*.color10: #a6e22e +*.color2: #008700 +*.color10: #d70087 ! yellow -*.color3: #f4bf75 -*.color11: #f4bf75 +*.color3: #5f8700 +*.color11: #8700af ! blue -*.color4: #66d9ef -*.color12: #66d9ef +*.color4: #0087af +*.color12: #d75f00 ! magenta -*.color5: #ae81ff -*.color13: #ae81ff +*.color5: #878787 +*.color13: #d75f00 ! cyan -*.color6: #a1efe4 -*.color14: #a1efe4 +*.color6: #005f87 +*.color14: #005faf ! white -*.color7: #f8f8f2 -*.color15: #f9f8f5 +*.color7: #444444 +*.color15: #005f87 diff --git a/config/.config/i3/config b/config/.config/i3/config index 6050f92..53eaab2 100644 --- a/config/.config/i3/config +++ b/config/.config/i3/config @@ -92,8 +92,9 @@ for_window [class="(?i)virtualbox"] floating enable border normal for_window [title="KeePassX$"] floating enable border normal for_window [title="Eddie - Settings"] floating enable border normal for_window [class="^Thunderbird$" title="^.*Event:"] floating enable -for_window [title="(?i)termite"] border pixel 3 -for_window [title="(?i)ranger"] border pixel 3 + +# Give boarder to terminal windows +for_window [class="(?i)termite"] border pixel 3 # switch to workspace with urgent window automatically for_window [urgent=latest] focus @@ -121,7 +122,7 @@ for_window [instance="^sun-awt-X11-XDialogPeer$" title="^Complete Installation$" ############################################################################### exec --no-startup-id setxkbmap us,de; setxkbmap -option ctrl:swapcaps -exec --no-startup-id feh --bg-scale ~/Pictures/Iroh-at-Tree.png; compton -b +exec --no-startup-id /home/tuan/.fehbg; compton -b exec --no-startup-id nextcloud exec --no-startup-id emacs --daemon exec --no-startup-id udiskie @@ -161,8 +162,8 @@ bindsym XF86AudioNext exec "playerctl next; cmus-remote -n" bindsym XF86AudioPrevious exec "playerctl previous; cmus-remote -r" # Application Shortcuts -bindsym $mod+b exec env GTK_THEME=Materia:dark firefox -bindsym $mod+e exec source ~/.zshrc && termite -e 'ranger' +bindsym $mod+b exec firefox +bindsym $mod+e exec termite -e ranger bindsym $mod+m exec thunderbird bindsym Print exec --no-startup-id scrot @@ -205,10 +206,11 @@ bindsym $mod+Shift+minus move scratchpad # Show the next scratchpad window or hide the focused scratchpad window. # If there are multiple scratchpad windows, this command cycles through them. bindsym $mod+minus scratchpad show - +bindsym $mod+Alt+v exec ~/.vim-anywhere/bin/run #navigate workspaces next / previous bindsym $mod+Ctrl+semicolon workspace next bindsym $mod+Ctrl+j workspace prev +# bindsym Alt+Tab workspace next # restart/exit i3 bindsym $mod+Shift+r restart diff --git a/config/.config/polybar/config b/config/.config/polybar/config index a990497..df65923 100644 --- a/config/.config/polybar/config +++ b/config/.config/polybar/config @@ -165,11 +165,11 @@ format = label-mode = %mode% label-mode-padding = 2 -label-mode-background = #e60053 +label-mode-background = ${colors.black} label-focused = %name% -label-focused-foreground = ${colors.white} -label-focused-background = #566268 +label-focused-foreground = ${colors.foreground} +label-focused-background = ${colors.background} label-focused-underline = ${colors.blue} label-focused-padding = 4 @@ -215,7 +215,7 @@ format-disconnected = [module/date] type = internal/date -interval = 5 +interval = 1 date = date-alt = " %Y-%m-%d" @@ -323,9 +323,7 @@ animation-charging-framerate = 750 [module/powermenu] type = custom/menu - expand-right = true - format-spacing = 1 label-open =  diff --git a/emacs/.emacs.d/config.org b/emacs/.emacs.d/config.org index d123b3a..140df6f 100644 --- a/emacs/.emacs.d/config.org +++ b/emacs/.emacs.d/config.org @@ -43,10 +43,9 @@ A list of installed packages and details about them. (use-package flycheck) (use-package ivy) (use-package ledger-mode) -(use-package molokai-theme) +(use-package paper-theme) (use-package ox-gfm) (use-package ox-twbs) -(use-package php-mode) (use-package powerline) (use-package rainbow-delimiters) (use-package rainbow-mode) diff --git a/vim/.vim/.netrwhist b/vim/.vim/.netrwhist index b0ac16c..5cd295d 100644 --- a/vim/.vim/.netrwhist +++ b/vim/.vim/.netrwhist @@ -1,5 +1,7 @@ let g:netrw_dirhistmax =10 -let g:netrw_dirhist_cnt =3 +let g:netrw_dirhist_cnt =5 let g:netrw_dirhist_1='/home/tuan/Nextcloud/Templates/LaTeX/Protokoll' let g:netrw_dirhist_2='/home/tuan/Nextcloud/Templates/LaTeX/Protokoll/INCL' let g:netrw_dirhist_3='/home/tuan/Nextcloud/Documents/Git/infrastruktur/mailing_lists' +let g:netrw_dirhist_4='/home/tuan/.dotfiles/config/.config/termite' +let g:netrw_dirhist_5='/home/tuan/Nextcloud/Protokolle/Rechenschaftsbericht' diff --git a/vim/.vim/ftplugin/md.vim b/vim/.vim/ftplugin/md.vim index b94684e..d4bd0ff 100644 --- a/vim/.vim/ftplugin/md.vim +++ b/vim/.vim/ftplugin/md.vim @@ -4,6 +4,6 @@ setlocal spell spelllang=de_de " Begin Shortcuts " Compilation -map :RunBackgroundCommand pandoc % --pdf-engine=xelatex -o %pdf -map :silent exec "!evince %<.pdf &" +map :RunBackgroundCommand pandoc % --pdf-engine=xelatex -o %pdf:redraw! +map :silent exec "!evince %pdf &" diff --git a/vim/.vim/ftplugin/python.vim b/vim/.vim/ftplugin/python.vim new file mode 100644 index 0000000..0b277d0 --- /dev/null +++ b/vim/.vim/ftplugin/python.vim @@ -0,0 +1,17 @@ +" Python settings + + +" Shortcuts +imap ifm if__name__=='__main__': + +" Compiling +map :!python % + +" Use the below highlight group when displaying bad whitespace is desired. +highlight BadWhitespace ctermbg=red guibg=red + +" Display tabs at the beginning of a line in Python mode as bad. +au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /^\t\+/ + +" Make trailing whitespace be flagged as bad. +au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/ diff --git a/vim/.vim/ftplugin/tex.vim b/vim/.vim/ftplugin/tex.vim index 333a79f..d32e520 100644 --- a/vim/.vim/ftplugin/tex.vim +++ b/vim/.vim/ftplugin/tex.vim @@ -4,13 +4,24 @@ setlocal spell spelllang=de_de map YpkI\begin{A}jI\end{A}ko map! YpkI\begin{A}jI\end{A}ko -imap ;item \begin{itemize}\end{itemize}ko\item -imap ;- \item +imap ;it \begin{itemize}\end{itemize}k +imap ;i \item{} +imap "" "`"'hha +imap ;fp \begin{tabular}{ccc}\topruleJa & Nein & Enthaltung \\ \midrule & & \\\bottomrule\end{tabular}0kk + +" Surround stuff +vmap da\textbf{"} +vmap da\underline{"} +vmap da\textit{"} +vmap da\emph{"} +vmap ( da(") +vmap "" da"`""' + ":command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk - ":command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk - | fmt -csw78 - " Compilation -map :RunBackgroundCommand pdflatex -interaction nonstopmode % -map :silent exec "!evince %<.pdf &" +map :RunBackgroundCommand latexmk -pdf -silent %:redraw! +map :RunBackgroundCommand latexmk -c +map :silent exec "!evince %pdf &>/dev/null &" diff --git a/vim/.vim/spell/de.utf-8.add b/vim/.vim/spell/de.utf-8.add index 74860ca..16aec4d 100644 --- a/vim/.vim/spell/de.utf-8.add +++ b/vim/.vim/spell/de.utf-8.add @@ -29,3 +29,188 @@ VVK Tagesordnugnspunkte BEGINNING EDITABLE +Dat +Hilal +FSE +Bektas +Abdallah +Murad +Waltmann +Prochazka +Dömckes +Hasselhuhn +Fachschaftsräte +presFSR +Schlittenhardt +Bärserker +Jöran +Terminfindung +Smartboard +#VS +VV +Studierendenparlament +#elbstbewirtschaftlung +Ipek +Nedzhati +QVK +Hochschulpolitik +Selbstbewirtschaftung +ESE +Orientierungswoche +Tutorenprogramm +Bookstacks +Erstifahrt +Erstis +Kundennummer +Stauder +Fachschaftenkonferenz +Görges +Studierendenschaft +Weihnachts +Orientierungswochen +Flunkyballturnier +Schützenbahn +Einschreibezahlen +Neustudierende +myUDE +App +Fahrradreperaturstation +Stottrop +Rahmenordnungen +Quartalstreffen +Schneegaß +Merch +Gästelistenplatz +Quartalstreffens +Studienrelevantes +Wahlauschusses +Beckerpape +Wahlauschuss +Sitzungsdisziplin +Sitzungsordnung +Disziplinator +Sitzungskodex +Schlüsselrecht +HG +Schlüsselentzug +Gästelistenplätzen +Prozessdokumentation +Bookstack +testweise +Prochazkas +SME +Zulassungssystem +Masterstudiengangssystems +Echtle +white +Whiteboard +LUDIs +Lern +anderer +Diskussionszentren +Easteregg +prüfungsfähig +KN1 +Ratsarbeit +HoPo +absFSR +anwHelper +presGuest +presBear +O +Herrn +KKC +T01 +#m +#m +Fahrscheinkontrolle +gegendert +#ertiefungsbereic +Vertiefungsbereich +Vertiefungsbereiche +Rathgeb +Smartboards +Beamerfläche +Fachschaftsratssitzung +Whatsapp +fsr +nanoengineering +Übungsblatt +a +b +c +d +rechtslinear +linkslinear +Produktionsregeln +Produktionsregel +nichtterminalsymbole +Eingabewort +Überführungsfunktionen +Bandalphabets +Leistungszeitraum +Rechnungs +Campusse +Inf +Raumzugang +SNE +Bittners +Bachelorstudiengang +prüfungsunfähig +Berichtspunkte +Neuwirth +Sellerbeck +Vennemann +Qualitätsverbesserungskomission +Seier +presHelper +Cansu +Akyüz +Startzustand +gefeba +Anwendungsentwickler +Studierendenberatung +Fachschaftsrat +Infrastrukturreferats +Fachschaftsrates +GitLab +TS3 +Hauptverantwortlicher +Erstsemestereinführung +Deligierter +Qualitätsverbesserungskommission +Rektoratsgesprächen +Musikpark +Studienalltag +zeitbeschränkt +bandbeschränkt +e +n +t +z1 +z2 +z3 +LSB +Ursprungsstelle +OwnCloud +Programmierungvorlesung +Lastenfahrräder +#eilnahmergebühren +Betriebsysteme +Rechnerstrukturen +Wirtschaftsinformatiker +Kimmeskamp +Montoringprogramm +Studierendenparlementssitzung +Papierpakete +Druckerpapier +Erstitüten +unbenotet +unbenoteten +Creditpunkte +außeinanderzusetzen +Teilnahmegebühren +Fachschaftsraum +Ambient +Lights +Buildcount diff --git a/vim/.vim/spell/de.utf-8.add.spl b/vim/.vim/spell/de.utf-8.add.spl index b8a2d0c872ed5df018758e17258bb7e59edbbc10..6201ddef77067a8af93290da0d6d7f74595cc4c8 100644 GIT binary patch literal 3610 zcmY*c%Z?jG6s@{#PY4Jp%wi&Iz5#iXC`?u);*pF+ASl4FK|<9Jx0`Nvn||0CM@UHF zD?ow`5`T~tJBtlM0`U)E0okyH1)OuMO$J%hZdcv9k8{txx8`*6X0u3&;_5%fJe!SN z7{$pnon;^8#k{N*AJ`e!7WVLi4To+*w}sdDnM9)yTunWFl_bUr%{|c)akaFF1L`_80W62tL6Jx2Okvkoh?LpJ3E%knq zAQFN>7a_9B1LJC$m+C~LrW$NhT?Zl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S4*9s|Xw1hd^5zHa^(|7vu191>KV(wb42_KPN#xT$-+$68RjnTC{aO{h~ z_d9 z7-L4${JL+xGy>XQ+yMcd6M`{3Q>kOOXO3Kg9*d3f6$w-BeePNMlv7-_FP8zYDY$^Z z&`b-$kHr2eahYqZfvG-m;z)wT{rr#HdP@jM=!E{M?z=9NXKv=xC9iP6)>~%E(|M^t^8B#e4-*Gug)uD9vaer4a%?<@8_`x@UaO_1Bt zz6y{m=V2bb_q#MxqqluQ6hJmHV#)B4mB=3Qpd;eFx9? PDU9zA&-MF#`fkj>RS?O% literal 560 zcmYjOF;2uV5cF)Wp`qaebf>gD0*L|%aT2|g_;OJ~9L3HZO2q?^5DhP&yOJmH0>p!k zS>GX{DE4}HX1qIoxVa63>$PMuRM@gM!t<|q)|~QcVs#HhZZ*2}tT*IZ6zEdMWqwp` z&y2^@>BgRWb5fldZ>ZdoH7aKrMYY;dWDy|G_`(PK(*8QKSlertiYdf;8DnA nnoremap nnoremap nnoremap +nnoremap J :bn +nnoremap K :bp nmap 0 ^ " Latex -let g:tex_nospell=1 +"let g:tex_nospell=1 " Shortcuts map /c5l inoremap /c5l diff --git a/vim/bundle/Vundle.vim b/vim/bundle/Vundle.vim deleted file mode 160000 index 9a38216..0000000 --- a/vim/bundle/Vundle.vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9a38216a1c0c597f978d73547d37681fc689c90d diff --git a/vim/bundle/vim-multiple-cursors b/vim/bundle/vim-multiple-cursors deleted file mode 160000 index dd9289a..0000000 --- a/vim/bundle/vim-multiple-cursors +++ /dev/null @@ -1 +0,0 @@ -Subproject commit dd9289af03abafa76b28c503e20747ff7d7d89e5 diff --git a/vim/bundle/vim-pandoc b/vim/bundle/vim-pandoc deleted file mode 160000 index d091114..0000000 --- a/vim/bundle/vim-pandoc +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d0911146c68512defcf9d947542b06d7f7eed37e diff --git a/vim/bundle/vim-pandoc-syntax b/vim/bundle/vim-pandoc-syntax deleted file mode 160000 index 56e8e41..0000000 --- a/vim/bundle/vim-pandoc-syntax +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 56e8e41ef863a0a7d33d85c3c0c895aa6e9e62d3 diff --git a/zsh/.zshrc b/zsh/.zshrc index 8ce017e..9bcbc8d 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -6,7 +6,7 @@ plugins=( sudo ) -ZSH_THEME="powerlevel9k/powerlevel9k" +#ZSH_THEME="/usr/share/zsh-theme-powerlevel9k/powerlevel9k" #POWERLEVEL POWERLEVEL9K_MODE='awesome-fontconfig' @@ -15,13 +15,13 @@ POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir vcs) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status time) POWERLEVEL9K_COLOR_SCHEME='light' -POWERLEVEL9K_STATUS_OK_BACKGROUND="blue" -POWERLEVEL9K_STATUS_OK_FOREGROUND="orange" -POWERLEVEL9K_STATUS_ERROR_BACKGROUND="blue" -POWERLEVEL9K_STATUS_ERROR_FOREGROUND="red" - -POWERLEVEL9K_TIME_BACKGROUND="white" -POWERLEVEL9K_TIME_FOREGROUND="black" +#POWERLEVEL9K_STATUS_OK_BACKGROUND="blue" +#POWERLEVEL9K_STATUS_OK_FOREGROUND="orange" +#POWERLEVEL9K_STATUS_ERROR_BACKGROUND="blue" +#POWERLEVEL9K_STATUS_ERROR_FOREGROUND="red" +# +#POWERLEVEL9K_TIME_BACKGROUND="white" +#POWERLEVEL9K_TIME_FOREGROUND="black" POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S}" POWERLEVEL9k_SHORTEN_STRATEGY="trunctuate_middle" @@ -72,6 +72,8 @@ export VISUAL=$EDITOR export VISUAL_EDITOR=$EDITOR export DOTNET_CLI_TELEMETRY_OPTOUT=true export PATH="$PATH:/home/tuan/.dotnet/tools" +export ASPNETCORE_Environment=Development # Functions +source /usr/share/zsh-theme-powerlevel9k/powerlevel9k.zsh-theme