7 files changed,
61 insertions(+),
14 deletions(-)
Author:
Smirnov Alexandr
ss2316544@gmail.com
Committed at:
2021-03-22 19:13:32 +0200
Parent:
633e8ad
jump to
| M | bin/catfetch |
| A | bin/gpe |
| M | config/bspwm/sxhkd |
| M | config/nvim/init.vim |
| M | config/ranger/rc.conf |
| M | config/zathura/zathurarc |
| M | zshrc |
M
bin/catfetch
@@ -1,19 +1,29 @@
#!/bin/sh -kernel=$(cat /proc/sys/kernel/osrelease|cut -d '-' -f1) + +# Kernel version +kernel=$(cat /proc/sys/kernel/osrelease | cut -d '-' -f1) + +# Window manager [ ! "$wm" ] && [ "$DISPLAY" ] && command -v xprop >/dev/null && { wmname="$(xprop -id $(xprop -root -notype\ | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t\ | grep "WM_NAME"\ | cut -f2 -d \")" } + +# Shell shell=$(basename $SHELL) + +# Installed packages manager=$(which apt pacman yay 2>/dev/null) manager=${manager##*/} case "$manager" in - apt) packages="$(dpkg-query -f '${binary:Package}\n' -W | wc -l)";; - yay) packages="$(yay -Q | wc -l)";; - pacman) packages="$(pacman -Q | wc -l)";; + apt) packages="$(dpkg-query -f '${binary:Package}\n' -W | wc -l)" ;; + yay) packages="$(yay -Q | wc -l)" ;; + pacman) packages="$(pacman -Q | wc -l)" ;; esac + +# Text decorations bold=$(tput bold) reset="\e[0m" blue="\e[36m"
A
bin/gpe
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash +# For working this script set in $GPG_KEY you gpg key +## Functions +function encrypt() { + gpg -ea -r $GPG_KEY $@ +} +function decrypt() { + local fn="$1" + + if [ ${fn: -4} == ".asc" ] + then + gpg -d -o ${fn%%.asc} $@ + elif [ ${fn: -4} == ".gpg" ] + then + gpg -d -o ${fn%%.gpg} $@ + fi +} + +## Logic +case "$1" in + enc|e) shift; encrypt $@ ;; + dec|d) shift; decrypt $@ ;; + *) echo "Error." ;; +esac
M
config/bspwm/sxhkd
@@ -28,18 +28,18 @@ super + q
bspc node -c super + control + r - bspc wm -r && pkill sxhkd && sxhkd -c ~/.config/bspwm/sxhkd + bspc wm -r \ + && pkill sxhkd \ + && sxhkd -c ~/.config/bspwm/sxhkd ### == BSPWM windows -## Resize window -super + ctrl + {h,j,k,l} - bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} - -# Change focus & move focus window super + {_,shift + } {h,j,k,l} bspc node -{f,s} {west,south,north,east} -# Preselect the direction +super + ctrl + {h,j,k,l} + bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} + +### === BSPWM window preselect super + alt + {h,j,k,l} bspc node -p {west,south,north,east}
M
config/nvim/init.vim
@@ -85,6 +85,7 @@
"== NERDTree let g:NERDTreeWinPos = "right" let g:NERDTreeMinimalUI = 1 +let g:NERDTreeWinSize = 24 "== Mapping let mapleader=";"
M
config/ranger/rc.conf
@@ -22,16 +22,28 @@ set save_console_history false
set scroll_offset 4 #== Mappings + +# go to map gc cd ~/code map gd cd ~/Documents map gw cd ~/Downloads map g. cd ~/.dotfiles map @ shell $SHELL + +# delete map dD delete map dT trash + +# tab map <c-k> tab_shift 1 map <c-j> tab_shift -1 + +# archive map sa shell zip -r archive.zip %s map ss shell tar -czvf archive.tar.gz %s map sd shell 7z a archive.7z %s map se shell extract %s + +# gpg +map ee shell gpe enc %s +map ed shell gpe dec %s
M
config/zathura/zathurarc
@@ -4,8 +4,8 @@ set default-bg "#262A2B"
set statusbar-fg "#CED4DA" set statusbar-bg "#1F2324" -set statusbar-h-padding 10 -set statusbar-v-padding 10 +set statusbar-h-padding 7 +set statusbar-v-padding 7 set inputbar-fg "#FFFFFF" set inputbar-bg "#1F2324"
M
zshrc
@@ -1,4 +1,4 @@
-export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/go/bin:$HOME/.local/bin:$PATH" +export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/.local/bin:$PATH" export EDITOR="nvim" ### Oh my zsh