diff --git a/bin/arch_upd b/bin/arch_upd new file mode 100755 index 0000000..e8b0edf --- /dev/null +++ b/bin/arch_upd @@ -0,0 +1,4 @@ +#!/bin/sh +sudo pacman -Syyuu --noconfirm +yay -Sua --noconfirm +sudo pacman -Rs $(pacman -Qdtq) --noconfirm diff --git a/bin/extract b/bin/extract new file mode 100755 index 0000000..634ef69 --- /dev/null +++ b/bin/extract @@ -0,0 +1,18 @@ +#!/bin/sh +case "$1" in + *.tar.bz2) tar xjf $1 ;; + *.tar.gz) tar xzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar x $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xf $1 ;; + *.tbz2) tar xjf $1 ;; + *.tgz) tar xzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1 ;; + *.7z) 7z x $1 ;; + *.deb) ar x $1 ;; + *.tar.xz) tar xf $1 ;; + *.tar.zst) unzstd $1 ;; + *) echo "'$1' is not a valid file" ;; +esac diff --git a/bin/giti b/bin/giti new file mode 100755 index 0000000..4566037 --- /dev/null +++ b/bin/giti @@ -0,0 +1,35 @@ +#!/bin/sh +add() { + local file="$1" + echo $file >> .gitignore +} +del() { + local file="$1" + sed -i "/$file/d" .gitignore +} +edit() { + local oldname="$1" + local newanme="$2" + sed -in "s|$oldname|$newanme|g" .gitignore +} +show() { + if [ -f '/usr/bin/bat' ] + then + bat .gitignore + else + cat .gitignore + fi +} + +case "$1" in + add|a) shift; add "$@" ;; + del|d) shift; del "$@" ;; + mv) shift; edit "$@" ;; + show|s) shift; show ;; + help) echo "add/a - filename add to ignore" + echo "del/d - filename del from ignore" + echo "mv - oldname newname chage file name" + echo "show - show ignore file" + ;; + *) echo "Command is not valid" +esac diff --git a/bin/kbhl b/bin/kbhl new file mode 100755 index 0000000..695b1dc --- /dev/null +++ b/bin/kbhl @@ -0,0 +1,6 @@ +#!/bin/sh +case "$1" in + "on"|"-on"|"--on"|1) xset led on ;; + "off"|"-off"|"--off"|0) xset led off ;; +esac + diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf index 0c71db4..9180cd8 100644 --- a/config/kitty/kitty.conf +++ b/config/kitty/kitty.conf @@ -86,8 +86,8 @@ map alt+ctrl+backspace change_font_size all 0 # Theming foreground #dfdfdf -background_opacity 0.85 -#background_opacity 1 +#background_opacity 0.85 +background_opacity 1 background_image none background_image_layout tiled background_image_linear no @@ -96,7 +96,7 @@ background_tint 0.0 dim_opacity 0.75 selection_foreground #edebd7 selection_background #073642 -background #262a3b +background #262a2b foreground #ffffff cursorColor #d2dae2 selection_background #262a3b diff --git a/config/nvim/init.vim b/config/nvim/init.vim index 7bde52a..f4e8a87 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -28,6 +28,10 @@ call plug#begin('~/.vim/plugged') Plug 'ap/vim-css-color' call plug#end() +set termguicolors +set background=dark +colorscheme nten16 + set number set relativenumber @@ -69,11 +73,6 @@ set smartindent set visualbell t_vb= -set termguicolors -set background=dark -colorscheme nten16 - - " == Plugins configure " Lightline set noshowmode diff --git a/config/qtile/config.py b/config/qtile/config.py index 5fd0372..d241ab8 100644 --- a/config/qtile/config.py +++ b/config/qtile/config.py @@ -237,10 +237,9 @@ screens = [Screen(top=bar.Bar([ highlight_method="block", this_current_screen_border=color[2], this_screen_border=color[3], - foreground=color[0], ), - widget.Prompt(foreground=color[0]), - widget.WindowName(foreground=color[0]), + widget.Prompt(), + widget.WindowName(), kblayout.KBLayout( foreground=color[5], update_interval=0, @@ -300,6 +299,6 @@ floating_layout = layout.Floating( {"wname": "pinentry"}, {"wmclass": "ssh-askpass"}, ]) -auto_fullscreen = True +auto_fullscreen = False focus_on_window_activation = "smart" wmname = "LG3D" diff --git a/config/qtile/screen.png b/config/qtile/screen.png index 552f2f3..5a288b5 100644 Binary files a/config/qtile/screen.png and b/config/qtile/screen.png differ diff --git a/config/vifm/vifmrc b/config/vifm/vifmrc index 3b85317..450a05a 100644 --- a/config/vifm/vifmrc +++ b/config/vifm/vifmrc @@ -20,14 +20,21 @@ set trashdir=$HOME/.local/share/Trash/files set vifminfo=dhistory,chistory,state,shistory,phistory,fhistory,dirstack,registers,bookmarks,bmarks " === commands - command! zip zip -r %f.zip %f command! targz tar -czvf %f.tar.gz %f -command! vgrep nvim "+grep %a" set rulerformat= -" === files +" === Key maps +nmap q ZQ +nnoremap gg ggj +nnoremap ! :shell +nnoremap w :view +nnoremap S :sort +nnoremap se :!$HOME/bin/extract %f & +nnoremap sa :!zip -r %f.zip %f +nnoremap ss :!tar -czvf %f.tar.gz @f +" === files filetype *.csv,*.xlsx libreoffice %c %i fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw @@ -38,22 +45,8 @@ filetype nvim fileviewer env -uCOLORTERM bat --color always --wrap never --pager never %c -p filextype *.pdf zathura %c %i & -fileviewer *.pdf - \ vifmimg pdf %px %py %pw %ph %c - \ %pc - \ vifmimg clear - filetype