From 2040211f98b696a60b6969b32ca3047cf2fc0dbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Tue, 10 Nov 2020 00:26:41 +0100 Subject: [PATCH] Updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .config/nvim/init.vim | 1 + .gitignore | 1 + .local/bin/docker-start.sh | 17 +++++++++++++++++ .local/bin/emerge-logs | 2 +- .local/bin/postman | 1 - .local/bin/record | 13 +++++++++++++ .local/bin/update-kernel | 2 +- .xinitrc | 2 +- .zshrc | 4 +++- 9 files changed, 38 insertions(+), 5 deletions(-) create mode 100755 .local/bin/docker-start.sh delete mode 120000 .local/bin/postman create mode 100755 .local/bin/record diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 6d4539b..56126bb 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -121,6 +121,7 @@ hi CursorLine ctermbg=235 " map nnoremap ,nn :set nu! nnoremap ,NN :set nu +inoremap ,f i--Regards,Marcin Woźniakhttps://yorune.pl nnoremap S :%s//g nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown map :NERDTreeToggle diff --git a/.gitignore b/.gitignore index d090016..cad05ef 100644 --- a/.gitignore +++ b/.gitignore @@ -113,3 +113,4 @@ www .config/mpv/watch_later/ .gem/ .config/Postman/ +.config/GIMP/ diff --git a/.local/bin/docker-start.sh b/.local/bin/docker-start.sh new file mode 100755 index 0000000..cf3efe5 --- /dev/null +++ b/.local/bin/docker-start.sh @@ -0,0 +1,17 @@ +#!/bin/bash - +#=============================================================================== +# +# FILE: docker-start.sh +# +# USAGE: ./docker-start.sh +# +# OPTIONS: --- +# REQUIREMENTS: openrc system +# AUTHOR: Marcin Woźniak, y0rune@aol.com +# CREATED: 11/08/2020 11:21 +# REVISION: --- +#=============================================================================== + +sudo rc-service docker start +sleep 10 +sudo docker ps diff --git a/.local/bin/emerge-logs b/.local/bin/emerge-logs index 0f3575b..bf9ab1f 100755 --- a/.local/bin/emerge-logs +++ b/.local/bin/emerge-logs @@ -1,5 +1,5 @@ #!/bin/bash -LOGS=( $(sudo find /var/tmp/portage/ -mindepth 3 -name "build.log") ) +LOGS=( $(sudo find /var/tmp/portage/ -mindepth 1 -maxdepth 5 -name "build.log") ) LEN=${#LOGS[@]} for (( i=0; i<$LEN; i++ )); diff --git a/.local/bin/postman b/.local/bin/postman deleted file mode 120000 index 09148ee..0000000 --- a/.local/bin/postman +++ /dev/null @@ -1 +0,0 @@ -/opt/postman/Postman \ No newline at end of file diff --git a/.local/bin/record b/.local/bin/record new file mode 100755 index 0000000..09277f1 --- /dev/null +++ b/.local/bin/record @@ -0,0 +1,13 @@ +#!/bin/bash +AUDIO=$(pactl list sources | awk '/Name: alsa_out/{print $2}') + +ffmpeg \ +-f pulse \ +-i "$AUDIO" \ +-f x11grab \ +-framerate 60 \ +-r 30 \ +-s 1920x1080 \ +-i :0 \ +-c:v h264 -crf 0 -preset ultrafast -c:a aac \ +"$HOME/screencast-$(date '+%y%m%d-%H%M-%S').mp4" diff --git a/.local/bin/update-kernel b/.local/bin/update-kernel index 487a17d..9ceee40 100755 --- a/.local/bin/update-kernel +++ b/.local/bin/update-kernel @@ -10,7 +10,7 @@ echo -e "\e[93m----------------------COMPILING------------------------------\e[0 sudo cp -rv $DEFAULT_KERNEL $TMP_KERNEL cp -r $TMP_KERNEL $BACKUP/kernel-config cp -r /etc/portage/* $BACKUP -qlist -I | sort | uniq | tr '\n' ' ' > $BACKUP/list-of-programs +qlist -I | sort -u > $BACKUP/list-of-programs } function selection() { diff --git a/.xinitrc b/.xinitrc index 8f0d9f6..9bb7251 100644 --- a/.xinitrc +++ b/.xinitrc @@ -9,7 +9,7 @@ xrandr --auto xset b off& # Lock screen -xset s 300 +xset s 600& xautolock -time 15 -locker slock& # Programs diff --git a/.zshrc b/.zshrc index a2fadc5..30580f1 100644 --- a/.zshrc +++ b/.zshrc @@ -77,10 +77,12 @@ alias gpush="git push" alias gpull="git pull" alias gstatus="git status -s" alias gst="git status -s" +alias gdiff="git diff" +alias gnew="git checkout -b" alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches" alias gfg="git checkout master && git fetch upstream && git pull upstream master" alias cal="cal -3" -alias code="vscodium" +alias code="vscodium-bin" alias vpn="sudo /root/.local/bin/protonvpn c -f" alias vpnch="sudo /root/.local/bin/protonvpn c --cc CH" alias vpnd="sudo /root/.local/bin/protonvpn d"