From 8291560972accabd097610c70c962b90df5aecc1 Mon Sep 17 00:00:00 2001 From: ccppi Date: Wed, 3 Apr 2024 10:33:26 +0200 Subject: [PATCH] add some files --- .vimrc | 33 +++++++++++++++++++++++++++++++++ aron-mp3player-video.sh | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .vimrc diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..b12a5dd --- /dev/null +++ b/.vimrc @@ -0,0 +1,33 @@ +autocmd FileType python map :w:exec '!python' shellescape(@%, 1) +" Disable compatibility with vi which can cause unexpected issues. +set nocompatible +" Enable type file detection. Vim will be able to try to detect the type of file in use. +filetype on +" Enable plugins and load plugin for the detected file type. +filetype plugin on +" Load an indent file for the detected file type. +filetype indent on +" Turn syntax highlighting on. +syntax on +set term=kitty +" Highlight cursor line underneath the cursor vertically. +set cursorline +" Set tab width to 4 columns. +set tabstop=4 +" While searching though a file incrementally highlight matching characters as you type. +set incsearch +" Show matching words during a search. +set showmatch +" Use highlighting when doing a search. +set hlsearch +" Set the commands to save in history default number is 20. +set history=1000 +" Enable auto completion menu after pressing TAB. +set wildmenu +" Make wildmenu behave like similar to Bash completion. +set wildmode=list:longest + +set mouse=a + + " provide path directly to the library file + let g:clang_library_path='/usr/lib/libclang.so' diff --git a/aron-mp3player-video.sh b/aron-mp3player-video.sh index 64e6707..a994023 100644 --- a/aron-mp3player-video.sh +++ b/aron-mp3player-video.sh @@ -1 +1 @@ -ffmpeg -i output.avi -ac 1 -ar 22050 -r 25 -block_size 882 output.amv +for i in *.mp4; do let "i2=i2+1" ;ffmpeg -i "$i" -vf scale=320:240 -ac 1 -ar 22050 -r 25 -block_size 882 "$i2.amv"; done