summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kaufmann <astra@ionic.at>2023-01-16 21:06:44 +0100
committerDavid Kaufmann <astra@ionic.at>2023-01-16 21:06:44 +0100
commit25819730c28146250c7dca8f7f967280d0c0cea2 (patch)
tree4bbef67778c61b5fc55ef7f996ee9a32f48a753b
parentd4fd673d2c64db1cb747bb8155aa4052a8c03296 (diff)
downloadconfig-25819730c28146250c7dca8f7f967280d0c0cea2.tar.gz
update stuff
-rw-r--r--home/.vim/vimrc20
-rw-r--r--home/.zshrc14
2 files changed, 14 insertions, 20 deletions
diff --git a/home/.vim/vimrc b/home/.vim/vimrc
index e8a79cd..d2ff03b 100644
--- a/home/.vim/vimrc
+++ b/home/.vim/vimrc
@@ -231,24 +231,6 @@ if has("autocmd") && exists("+omnifunc")
\ endif
endif
-
-" Modified tab completion. It works fine now.
-function! My_TabComplete()
-let line = getline('.') " curline
-let substr = strpart(line, -1, col('.')+1) " from start to cursor
-let substr = matchstr(substr, "[^ \t]*$") " word till cursor
-if (strlen(substr)==0) " nothing to match on empty string
- return "\<tab>"
-endif
-let bool = match(substr, '\.') " position of period, if any
-if (bool==-1)
- return "\<C-X>\<C-P>" " existing text matching
-else
- return "\<C-X>\<C-U>" " plugin matching
-endif
-endfunction
-autocmd BufNew,BufRead *.java inoremap <tab> <C-R>=My_TabComplete()<CR>
-
autocmd BufNewFile,BufRead /home/astra/dev/tuwien/effprog_2013/*.[ch] set shiftwidth=2 softtabstop=2 expandtab
autocmd BufNewFile,BufRead *.rb set shiftwidth=2 softtabstop=2 expandtab
autocmd BufNewFile,BufRead *.py set shiftwidth=4 softtabstop=4 expandtab
@@ -276,7 +258,7 @@ set guioptions-=r
set linespace=1
" Farben Tageszeitabhaengig
-let hr= strftime('%H')
+let hr=strftime('%H')
"if 0 <= hr && hr <= 5
" colorscheme delek
diff --git a/home/.zshrc b/home/.zshrc
index 636e867..63a338e 100644
--- a/home/.zshrc
+++ b/home/.zshrc
@@ -63,7 +63,7 @@ zstyle ':omz:update' mode disabled # disable automatic updates
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
-# HIST_STAMPS="mm/dd/yyyy"
+HIST_STAMPS="yyyy-mm-dd"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
@@ -257,6 +257,18 @@ if main_node; then
[ "${dunst_state}" = "active" ] && systemctl start --user dunst.service
[ "${redshift_state}" = "active" ] && systemctl start --user redshift.service
}
+
+ stream_send() {
+ ADDR=${1:-127.0.0.1}
+ PORT=${2:-1234}
+ ffmpeg -video_size 2560x1440 -f x11grab -i :0 -preset ultrafast -vcodec libx264 -tune zerolatency -movflags +faststart -f mpegts udp://${ADDR}:${PORT}
+ }
+
+ stream_receive() {
+ ADDR=${1:-128.130.95.120}
+ PORT=${2:-1234}
+ mpv udp://${ADDR}:${PORT} --no-cache --untimed --no-demuxer-thread --video-sync=audio --vd-lavc-threads=1
+ }
fi
mping(){ ping $@|awk -F'[= ]' '/time=/{t=$(NF-1);f=2000-14*log(t^18);c="play -q -n synth 1 pl "f"&";print $0;system(c)}'; } # mping yahoo\.com