all repos

dotfiles @ 4f7f44d7f434f0702b2dc8a2108f9b3139dbb56e

my dotfiles
10 files changed, 91 insertions(+), 42 deletions(-)
Update kitty bg color, nvim config. Add bgcolor function in zshrc for set specific bg color, hot keys for archiving in vifm
Author: Smirnov Olexandr ss2316544@gmail.com
Committed at: 2020-12-13 20:52:29 +0200
Parent: f5a07cf
A bin/arch_upd

@@ -0,0 +1,4 @@

+#!/bin/sh +sudo pacman -Syyuu --noconfirm +yay -Sua --noconfirm +sudo pacman -Rs $(pacman -Qdtq) --noconfirm
A 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
A 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
A 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 +
M config/kitty/kitty.conf

@@ -86,8 +86,8 @@

# 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
M config/nvim/init.vim

@@ -28,6 +28,10 @@ Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }

Plug 'ap/vim-css-color' call plug#end() +set termguicolors +set background=dark +colorscheme nten16 + set number set relativenumber

@@ -68,11 +72,6 @@ set hidden

set smartindent set visualbell t_vb= - -set termguicolors -set background=dark -colorscheme nten16 - " == Plugins configure " Lightline
M config/qtile/config.py

@@ -237,10 +237,9 @@ highlight_color=color[2],

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 @@ {"wname": "branchdialog"},

{"wname": "pinentry"}, {"wmclass": "ssh-askpass"}, ]) -auto_fullscreen = True +auto_fullscreen = False focus_on_window_activation = "smart" wmname = "LG3D"
M config/qtile/screen.png

Not showing binary file.

M 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= +" === Key maps +nmap q ZQ +nnoremap gg ggj +nnoremap ! :shell<cr> +nnoremap w :view<cr> +nnoremap S :sort<cr> +nnoremap se :!$HOME/bin/extract %f &<cr> +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 <text/*> nvim

fileviewer <text/*> 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 <audio/*> mocp %c %i & -fileviewer <audio/*> - \ vifmimg audio %px %py %pw %ph %c - \ %pc - \ vifmimg clear - filetype <video/*> mpv %c %i & -fileviewer <video/*> - \ vifmimg video %px %py %pw %ph %c - \ %pc - \ vifmimg clear filextype <image/*> sxiv %c %i & fileviewer <image/*>

@@ -75,14 +68,6 @@

filetype * xdg-open %c fileviewer * file -b %c -" === Key maps -nmap q ZQ -nnoremap gg ggj -nnoremap ! :shell<cr> -nnoremap w :view<cr> -nnoremap S :sort<cr> -nnoremap a cw - " go keys nnoremap gh :cd ~<cr> nnoremap gc :cd ~/Code<cr>

@@ -91,9 +76,6 @@ nnoremap gb :cd ~/Documents/Books<cr>

nnoremap gm :cd ~/.dotfiles<cr> nnoremap gn :cd ~/bin<cr> nnoremap gz :cd ~/.script<cr> - -" extract -nnoremap se :!$HOME/bin/extract %f &<cr> " === file icons set classify=' :dir:/, :exe:, :reg:, :link:'
M zshrc

@@ -1,7 +1,7 @@

export ZSH="$HOME/.oh-my-zsh" export PATH="$HOME/bin:$PATH" -source ~/.env -source ~/.profile +#source ~/.env +#source ~/.profile ### Oh my zsh ###

@@ -25,6 +25,12 @@

### Variables ### export EDITOR="nvim" export VISUAL="nvim" + +### Function ### +function bgcolor { + convert -size 1x1 xc:$1 /tmp/bgc.png + feh --bg-tile /tmp/bgc.png +} ### Aliases ### alias cls="clear"