From 584c61032b25712556854074d70706b607a474a1 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 17 May 2014 11:08:09 +0200 Subject: Adding settings for my version of scvim, to be able to configure split-size and split orientation of the sclang output when using scvim in tmux and screen --- .scvimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.scvimrc b/.scvimrc index 1c1809d..67fb207 100644 --- a/.scvimrc +++ b/.scvimrc @@ -2,6 +2,12 @@ let g:sclangKillOnExit = 1 let g:sclangTerm = "urxvt -e" let g:sclangPipeLoc = "/tmp/sclang-pipe" let g:sclangPipeAppPidLoc = "/tmp/sclangpipe_app-pid" +" Set 1 to split scvim in tmux and screen vertically, 0 for horizontally +let g:scvimSplitVertical = 1 +" Set the size of the sclang output split in lines or blocks (only for scvim opened in screen and +" tmux). This setting applies vertically or horizontally, depending on +" g:scvimSplitVertical +let g:scvimSplitSize = 25 au BufWinEnter,BufNewFile,BufRead *.sc set filetype=supercollider au BufWinEnter,BufNewFile,BufRead *.sc let &iskeyword="@,48-57,_,192-255" | runtime ftplugin/supercollider.vim -- cgit v1.2.3-70-g09d2 From bde331c08441d04a6b47835bfc50e194170e66e6 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 17 May 2014 11:08:56 +0200 Subject: Adding alias for checking for video devices in /dev --- .zsh.after/aliases.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/.zsh.after/aliases.zsh b/.zsh.after/aliases.zsh index 76c8689..7659e00 100644 --- a/.zsh.after/aliases.zsh +++ b/.zsh.after/aliases.zsh @@ -30,6 +30,7 @@ alias llt='ls -ltr' alias la='ls -A' alias lla='ls -lA' alias lsfw='ls -lah /dev|grep fw' +alias lsvid='ls -lah /dev|grep video' #grep aliases (with excluded directories) alias grepdot='grep -rI --exclude-dir=".steam" --exclude-dir=".local" --exclude-dir=".thunderbird" --exclude-dir=".mozilla" --exclude-dir="git" --exclude-dir=".rvm" --exclude-dir=".log" --exclude-dir=".dropbox-dist" --exclude-dir=".config" ' -- cgit v1.2.3-70-g09d2 From 78ef66d232c2f80fc6d20859bf514719dc1eb3e1 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 5 Jun 2014 21:55:49 +0200 Subject: Adding more bbb specific JACK settings --- bin/start_jack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/start_jack b/bin/start_jack index d28733c..48e97ed 100755 --- a/bin/start_jack +++ b/bin/start_jack @@ -13,7 +13,7 @@ case "$HOSTNAME" in EXTERNAL="card 1" if [[ "$CARDS" == *$EXTERNAL* ]];then echo "Starting with external USB card" - /usr/bin/xvfb-run -s "-screen 0, 1280x800x24" -a -e ~/.log/xvfb-run-jack.error jackd -dalsa -dhw:1,0 -p128 -n3 -s &> ~/.log/jackd.log & + /usr/bin/xvfb-run -s "-screen 0, 1280x800x24" -a -e ~/.log/xvfb-run-jack.error jackd -dalsa -dhw:1,0 -p2048 -n3 -s &> ~/.log/jackd.log & else echo "Starting with internal HDMI card" /usr/bin/xvfb-run -s "-screen 0, 1280x800x24" -a -e ~/.log/xvfb-run-jack.error jackd -dalsa -dhw:0,0 -p128 -n3 -s &> ~/.log/jackd.log & -- cgit v1.2.3-70-g09d2 From e1de2e03a7ab7bdbd978ee92ac4340984a0af777 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 17 Jun 2014 15:33:49 +0200 Subject: Retabbing, customizing to my user --- .zsh.after/unixpool | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.zsh.after/unixpool b/.zsh.after/unixpool index d3498a1..e2edade 100644 --- a/.zsh.after/unixpool +++ b/.zsh.after/unixpool @@ -49,23 +49,23 @@ fi ## FUNCTIONS function music_update() { - echo "updating zip files" - for i in */*; - do - name=`echo $i | sed 's/\ /_/g' | sed 's/\//-/g'` - if [ ! -e $name.zip ]; - then - echo "packing $i as $name.zip" - zip -r $name.zip $i - fi - done - echo "done" + echo "updating zip files" + for i in */*; + do + name=`echo $i | sed 's/\ /_/g' | sed 's/\//-/g'` + if [ ! -e $name.zip ]; + then + echo "packing $i as $name.zip" + zip -r $name.zip $i + fi + done + echo "done" } function makantine() { - wget http://personalkantine.personalabteilung.tu-berlin.de/pdf/MA-aktuell.pdf -O /tmp/makantine.$$.pdf >&/dev/null - xpdf -cont -z page /tmp/makantine.$$.pdf - rm -f /tmp/makantine.$$.pdf + wget http://personalkantine.personalabteilung.tu-berlin.de/pdf/MA-aktuell.pdf -O /tmp/makantine.$$.pdf >&/dev/null + xpdf -cont -z page /tmp/makantine.$$.pdf + rm -f /tmp/makantine.$$.pdf } function pxeln() { @@ -121,5 +121,5 @@ function pxeln() { } function mailhighscore() { - for i in /homes/wheel/*; do n=`basename $i`; echo `grep $n /var/spool/mail/konni | grep -c From` $n; done | sort -nr + for i in /homes/wheel/*; do n=`basename $i`; echo `grep $n /var/spool/mail/runge | grep -c From` $n; done | sort -nr } -- cgit v1.2.3-70-g09d2 From 0b7cf0e3325f31f4b676734e2b5bb1dead0fbfa9 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 17 Jun 2014 15:34:17 +0200 Subject: Adding octave support --- .vundles.local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vundles.local b/.vundles.local index 0f02485..b020552 100644 --- a/.vundles.local +++ b/.vundles.local @@ -9,4 +9,4 @@ Bundle "sophacles/vim-processing" "latex Bundle "vim-scripts/LaTeX-Suite-aka-Vim-LaTeX" "octave -Bundle "sjas/octave.vim" +Bundle "sjas/octave.vim" \ No newline at end of file -- cgit v1.2.3-70-g09d2 From c72761520d904c3bc4ecd39f8f839223513d8e30 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 17 Jun 2014 15:53:04 +0200 Subject: Adding more work related ignores --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index ebdb903..406b842 100644 --- a/.gitignore +++ b/.gitignore @@ -40,9 +40,11 @@ Music/ Pictures/ Videos/ backup/ +build/ git/ ownCloud/ yankring_history_v2.txt +svn/ .ICEauthority .Mathematica/ @@ -255,6 +257,7 @@ yankring_history_v2.txt .processing/ .profile .pryrc +.pulse .pulse-cookie .python-eggs/ .q3a/ -- cgit v1.2.3-70-g09d2 From 3b44361df3ede6208faa6fc97d584d33889dedf5 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 17 Jun 2014 16:04:55 +0200 Subject: Adding bindings for vi-copy mode in tmux --- .tmux.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 6fefcb7..586539c 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -62,7 +62,6 @@ setw -g mode-mouse on - # Keep your finger on ctrl, or don't bind-key ^D detach-client @@ -73,6 +72,14 @@ set -g status-keys vi # Use vi keybindings in copy and choice modes setw -g mode-keys vi +# v and y like vi in copy-mode +bind-key -t vi-copy 'v' begin-selection +bind-key -t vi-copy 'y' copy-selection +# clipboard settings +set -s set-clipboard on +bind-key C-p run "xclip -o | tmux load-buffer - ; tmux paste-buffer" +bind-key C-y run "tmux save-buffer - | xclip -i" + # set first window to index 1 (not 0) to map more to the keyboard layout... set -g base-index 1 -- cgit v1.2.3-70-g09d2