From 2d9a91bbc3e67f2c5c1b3400214d1a26dd185ed0 Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Tue, 18 Jun 2019 15:56:39 +0200 Subject: [PATCH] Tweaks for ledger and removed most vim plugins --- config/.config/i3/config | 8 +++++--- config/.config/polybar/config | 28 +++++++++++++++++++++++++++ config/.local/share/ranger/bookmarks | 3 ++- config/.mozilla/firefox/profiles.ini | 9 +++++++-- config/.ssh/config | 6 ++++++ vim/.vim/ftplugin/go.vim | 3 --- vim/.vim/ftplugin/tex.vim | 2 +- vim/.vim/spell/de.utf-8.add | 8 ++++++++ vim/.vim/spell/de.utf-8.add.spl | Bin 7931 -> 8027 bytes vim/.vimrc | 22 ++++++--------------- zsh/.zshrc | 1 - 11 files changed, 63 insertions(+), 27 deletions(-) diff --git a/config/.config/i3/config b/config/.config/i3/config index c1c5b58..21936a3 100644 --- a/config/.config/i3/config +++ b/config/.config/i3/config @@ -99,14 +99,15 @@ for_window [title="^Steam Keyboard$"] floating enable ############################################################################### exec --no-startup-id setxkbmap us,de; setxkbmap -option ctrl:nocaps; setxkbmap -option grp:lalt_lshift_toggle -exec --no-startup-id feh --randomize --bg-fill /usr/share/backgrounds/gnome/* +exec --no-startup-id feh --randomize --bg-fill /home/tuan/Pictures/Wallpaper/* exec --no-startup-id compton -b -exec --no-startup-id nextcloud +exec --no-startup-id nextcloud --background exec --no-startup-id udiskie exec --no-startup-id conky -c ~/.conky/syclo-crimson-bottomleft.conkyrc exec --no-startup-id urxvtd exec --no-startup-id light-locker -exec --no-startup-id synergyd +exec --no-startup-id synergyc -f --no-tray --debug INFO --name genesis --enable-crypto 192.168.178.38:24800 +exec --no-startup-id /home/tuan/workspace/go/monthlyLedger/main /home/tuan/Templates/ledger/* # exec --no-startup-id polybar beep -r # exec --no-startup-id polybar boop -r # exec --no-startup-id nm-applet @@ -141,6 +142,7 @@ bindsym XF86AudioPrevious exec "playerctl previous; cmus-remote -r" # Application Shortcuts bindsym $mod+b exec firefox +bindsym $mod+p exec firefox --private-window https://mos4.de bindsym $mod+e exec urxvtc -e ranger bindsym $mod+Shift+e exec nautilus bindsym $mod+m exec thunderbird diff --git a/config/.config/polybar/config b/config/.config/polybar/config index 4ad197a..8cd8832 100644 --- a/config/.config/polybar/config +++ b/config/.config/polybar/config @@ -12,6 +12,34 @@ magenta = ${xrdb:color5:#e16} cyan = ${xrdb:color6:#098} white = ${xrdb:color7:#cdd} +[bar/systray] +width = 100% +height = 25 + +radius = 6.0 +fixed-center = true + +tray-position = right +tray-padding = 0 + +background = #00000000 +foreground = ${colors.foreground} + +module-margin-left = 1 +module-margin-right = 1 + +font-0 = fixed:pixelsize=10;1 +font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +font-2 = siji:pixelsize=10;1 +font-3 = FontAwesome:style=Regular:pixelsize=10 + +modules-left = +modules-center = i3 +modules-right = + +cursor-click = pointer +cursor-scroll = ns-resize + [bar/beep] width = 100% diff --git a/config/.local/share/ranger/bookmarks b/config/.local/share/ranger/bookmarks index bc7aa15..a4a07e1 100644 --- a/config/.local/share/ranger/bookmarks +++ b/config/.local/share/ranger/bookmarks @@ -1,6 +1,7 @@ -':/home/tuan/Desktop +':/home/tuan u:/home/tuan/Documents/Uni/Studium p:/home/tuan/Documents/Protokolle/FSE o:/home/tuan/.dotfiles/config w:/home/tuan/Documents/Collection/wiki m:/run/media/tuan +a:/home/tuan/Documents/Arbeit diff --git a/config/.mozilla/firefox/profiles.ini b/config/.mozilla/firefox/profiles.ini index a969730..1f8e1be 100644 --- a/config/.mozilla/firefox/profiles.ini +++ b/config/.mozilla/firefox/profiles.ini @@ -1,5 +1,6 @@ -[General] -StartWithLastProfile=1 +[Install4F96D1932A9F858E] +Default=2x4tnepw.default +Locked=1 [Profile0] Name=default @@ -7,3 +8,7 @@ IsRelative=1 Path=2x4tnepw.default Default=1 +[General] +StartWithLastProfile=1 +Version=2 + diff --git a/config/.ssh/config b/config/.ssh/config index a32bf76..9a11524 100644 --- a/config/.ssh/config +++ b/config/.ssh/config @@ -21,3 +21,9 @@ Host github.com Port 22 User git IdentityFile /mnt/veracrypt1/git + +Host toya + Hostname 192.168.178.25 + Port 22 + User toya + IdentityFile /mnt/veracrypt1/raspberry diff --git a/vim/.vim/ftplugin/go.vim b/vim/.vim/ftplugin/go.vim index 8600711..5d7cfac 100644 --- a/vim/.vim/ftplugin/go.vim +++ b/vim/.vim/ftplugin/go.vim @@ -1,8 +1,5 @@ " Shortcuts imap ;main package mainimport ("fmt")func main() {}O -imap { {}kA -imap ( ()i -imap () () " Compiling diff --git a/vim/.vim/ftplugin/tex.vim b/vim/.vim/ftplugin/tex.vim index d32e520..e602d8e 100644 --- a/vim/.vim/ftplugin/tex.vim +++ b/vim/.vim/ftplugin/tex.vim @@ -21,7 +21,7 @@ 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 latexmk -pdf -silent %:redraw! +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 b22072d..c232e16 100644 --- a/vim/.vim/spell/de.utf-8.add +++ b/vim/.vim/spell/de.utf-8.add @@ -618,3 +618,11 @@ flag false if q3 +Excel +Powerpoint +zweitsprachig +C2 +Schülerpraktikum +Cirriculum +of +VCS diff --git a/vim/.vim/spell/de.utf-8.add.spl b/vim/.vim/spell/de.utf-8.add.spl index 83bb4decb173137e36692e23ff3710ba18b14817..e3bcc4c60e2b24b9661519ae950a0d80403069a9 100644 GIT binary patch delta 2058 zcmXw4U2GIp6rOWux;xu$m;OVyEv2-AR8#GbAlRyuG(t%c6AMHPadvmMyL5JTo!M<+ z6M_T@2@eps5wS!G2@f?u+=S8xL=r5LC^4c&(rAnZ38+zG8XgEF;&)~-gxlFW=j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C2&Kp4D(?Qc7qNs#s}^jr`}@BF$PF4rM~ly)Vj<`b~6%pQ&FNHM1t%rMBmu1AYhs z${FyTj^S7OHep8@L8Kux^a7qaynMDk>-R;aCTe>e z*_2N-P`hTz;V&K3<$oAz%CHXsjTai)94B*5jel!sqjlWU*d4ei%g)=mEVvbcYS?Ie zF!XrR86O!t0nXNMDq$d&122cj&KGk=?bRE_mU~k5%s3DjfGDhipp71UzX$o VAI<|=c9?%?Zl|~Bs#ffve*mNizhD3W diff --git a/vim/.vimrc b/vim/.vimrc index 1375899..21e7cd4 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -5,10 +5,7 @@ filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' -Plugin 'vim-pandoc/vim-pandoc' -Plugin 'vim-pandoc/vim-pandoc-syntax' -Plugin 'vimwiki/vimwiki' -Plugin 'neoclide/coc.nvim' +Plugin 'sheerun/vim-polyglot' call vundle#end() filetype plugin indent on @@ -62,13 +59,16 @@ nnoremap nnoremap nnoremap J :bn nnoremap K :bp +noremap y "+y +noremap :tabedit +noremap :ter nmap 0 ^ " Latex "let g:tex_nospell=1 " Shortcuts -inoremap ;date =strftime("%Y/%m/%d") -inoremap ;time =strftime("%H:%M:%S") +inoremap date =strftime("%Y/%m/%d") +inoremap time =strftime("%H:%M:%S") " Diaeresis for e.g. german inoremap a" ä inoremap o" ö @@ -80,7 +80,6 @@ inoremap jj inoremap ;s ß inoremap ;e € - " This callback will be executed when the entire command is completed function! BackgroundCommandClose(channel) " Read the output from the command into the quickfix window @@ -107,12 +106,3 @@ endfunction " So we can use :BackgroundCommand to call our function. command! -nargs=+ -complete=shellcmd RunBackgroundCommand call RunBackgroundCommand() - -" Vimwiki -let g:vimwiki_list =[ - \{'path':'~/Documents/Collection/wiki'}, - \{'path_html':'~/Documents/Collection/wiki_html'} - \] - -" Pandoc -let g:pandoc#modules#disabled = [ "spell" ] diff --git a/zsh/.zshrc b/zsh/.zshrc index a03fedd..a5a6d73 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -6,7 +6,6 @@ export LEDGER_FILE="/home/tuan/Documents/Finanzen/Ledger/MyBudget.ledger" # Alias alias background='feh --randomize --bg-fill /usr/share/backgrounds/*' -alias hledger-web='hledger-web --serve' alias gowinbuild='GOOS=windows GOARCH=amd64 go build' alias pwgen='pwgen -y 20 1' alias q="exit"