mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Add zathura
This commit is contained in:
parent
e916fc2103
commit
633e8ad6cd
10 changed files with 98 additions and 68 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#### System configuration
|
#### System configuration
|
||||||
- `OS` Arch
|
- `OS` Arch
|
||||||
- `WM` bspwm, openbox
|
- `WM` bspwm
|
||||||
- `Terminal` kitty
|
- `Terminal` kitty
|
||||||
- `Shell` zsh
|
- `Shell` zsh
|
||||||
- `Editor` nvim, vscode
|
- `Editor` nvim, vscode
|
||||||
|
|
@ -23,12 +23,12 @@ yay -S rcm
|
||||||
|
|
||||||
Install dependency:
|
Install dependency:
|
||||||
```bash
|
```bash
|
||||||
sudo pacman -S neovim tmux git openbox tint2 bspwm sxhkd kitty picom dunst zsh rofi ranger firefox ttf-font-awesome ttf-jetbrains
|
sudo pacman -S neovim tmux git dunst picom bspwm sxhkd kitty rofi zsh ranger ttf-jetbrains-mono ttf-font-awesome
|
||||||
yay -S polybar
|
yay -S polybar
|
||||||
```
|
```
|
||||||
|
|
||||||
And install config:
|
And install configs:
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/Smirnov-O/dotfiles .dotfiles
|
git clone --recursive https://github.com/Smirnov-O/dotfiles .dotfiles
|
||||||
rcup
|
rcup
|
||||||
```
|
```
|
||||||
|
|
|
||||||
30
bin/extract
30
bin/extract
|
|
@ -1,18 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
case "$1" in
|
case "$1" in
|
||||||
*.tar.bz2) tar xjf $1 ;;
|
*.tar.bz2) tar xjf $1 ;;
|
||||||
*.tar.gz) tar xzf $1 ;;
|
*.tar.gz) tar xzf $1 ;;
|
||||||
*.bz2) bunzip2 $1 ;;
|
*.bz2) bunzip2 $1 ;;
|
||||||
*.rar) unrar x $1 ;;
|
*.rar) unrar x $1 ;;
|
||||||
*.gz) gunzip $1 ;;
|
*.gz) gunzip $1 ;;
|
||||||
*.tar) tar xf $1 ;;
|
*.tar) tar xf $1 ;;
|
||||||
*.tbz2) tar xjf $1 ;;
|
*.tbz2) tar xjf $1 ;;
|
||||||
*.tgz) tar xzf $1 ;;
|
*.tgz) tar xzf $1 ;;
|
||||||
*.zip) unzip $1 ;;
|
*.zip) unzip $1 ;;
|
||||||
*.Z) uncompress $1 ;;
|
*.Z) uncompress $1 ;;
|
||||||
*.7z) 7z x $1 ;;
|
*.7z) 7z x $1 ;;
|
||||||
*.deb) ar x $1 ;;
|
*.deb) ar x $1 ;;
|
||||||
*.tar.xz) tar xf $1 ;;
|
*.tar.xz) tar xf $1 ;;
|
||||||
*.tar.zst) unzstd $1 ;;
|
*.tar.zst) unzstd $1 ;;
|
||||||
*) echo "'$1' is not a valid file" ;;
|
*) echo "'$1' is not a valid file" ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
22
bin/giti
22
bin/giti
|
|
@ -3,6 +3,7 @@ function add() {
|
||||||
echo $1 >> .gitignore
|
echo $1 >> .gitignore
|
||||||
echo "[.gitignore] Successful add '$1'."
|
echo "[.gitignore] Successful add '$1'."
|
||||||
}
|
}
|
||||||
|
|
||||||
function del() {
|
function del() {
|
||||||
if [ -f '.gitignore' ]; then
|
if [ -f '.gitignore' ]; then
|
||||||
if [ "$(cat .gitignore|wc -l)" = "1" ]
|
if [ "$(cat .gitignore|wc -l)" = "1" ]
|
||||||
|
|
@ -13,9 +14,11 @@ function del() {
|
||||||
fi
|
fi
|
||||||
echo "[.gitignore] Successful del '$1'."
|
echo "[.gitignore] Successful del '$1'."
|
||||||
}
|
}
|
||||||
|
|
||||||
function edit() {
|
function edit() {
|
||||||
sed -in "s|$1|$2|g" .gitignore
|
sed -in "s|$1|$2|g" .gitignore
|
||||||
}
|
}
|
||||||
|
|
||||||
function show() {
|
function show() {
|
||||||
if [ -f '.gitignore' ]; then
|
if [ -f '.gitignore' ]; then
|
||||||
if [ -f '/usr/bin/bat' ]
|
if [ -f '/usr/bin/bat' ]
|
||||||
|
|
@ -27,14 +30,13 @@ function show() {
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
add|a) shift; add "$@" ;;
|
add|a) shift; add "$@" ;;
|
||||||
del|d) shift; del "$@" ;;
|
del|d) shift; del "$@" ;;
|
||||||
mv) shift; edit "$@" ;;
|
mv) shift; edit "$@" ;;
|
||||||
show) shift; show ;;
|
show) shift; show ;;
|
||||||
help) echo "add|a - [file name] add to ignore."
|
help) echo "add|a - [file name] add to ignore."
|
||||||
echo "del|d - [file name] delete from ignore."
|
echo "del|d - [file name] delete from ignore."
|
||||||
echo "mv - [old] [new] file name for rename."
|
echo "mv - [old] [new] file name for rename."
|
||||||
echo "show - show ignore file."
|
echo "show - show ignore file." ;;
|
||||||
;;
|
*) echo "Command is not valid. Type 'giti help' for help." ;;
|
||||||
*) echo "Command is not valid. Type 'giti help' for help." ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,20 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
###== Function
|
###== Functions
|
||||||
R() {
|
A() {
|
||||||
if ! pgrep $1
|
if ! pgrep $1
|
||||||
then $@& fi
|
then $@& fi
|
||||||
}
|
}
|
||||||
|
C() {
|
||||||
|
bspc config $@
|
||||||
|
}
|
||||||
|
R() {
|
||||||
|
bspc rule -a $@
|
||||||
|
}
|
||||||
|
|
||||||
###== Autostart
|
###== Autostart
|
||||||
R feh --randomize --bg-scale ~/Pictures/wallp &
|
A feh --randomize --bg-scale ~/Pictures/wallp &
|
||||||
R sxhkd -c ~/.config/bspwm/sxhkd &
|
A sxhkd -c ~/.config/bspwm/sxhkd &
|
||||||
R lxsession &
|
A picom -b &
|
||||||
R picom -b &
|
|
||||||
~/.config/bspwm/polybar/bar.sh &
|
~/.config/bspwm/polybar/bar.sh &
|
||||||
|
|
||||||
###== BSPWM
|
###== BSPWM
|
||||||
|
|
@ -18,31 +23,32 @@ R picom -b &
|
||||||
bspc monitor -d 1 2 3 4 5 6 7 8 9
|
bspc monitor -d 1 2 3 4 5 6 7 8 9
|
||||||
|
|
||||||
# General
|
# General
|
||||||
bspc config border_width 2
|
C border_width 2
|
||||||
bspc config window_gap 4
|
C window_gap 4
|
||||||
bspc config split_ratio 0.50
|
C split_ratio 0.50
|
||||||
bspc config borderless_monocle true
|
C borderless_monocle true
|
||||||
bspc config gapless_monocle true
|
C gapless_monocle true
|
||||||
bspc config single_monocle true
|
C single_monocle true
|
||||||
bspc config focus_follows_pointer true
|
C focus_follows_pointer true
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
bspc config normal_border_color "#262A2B"
|
C normal_border_color "#262A2B"
|
||||||
bspc config active_border_color "#1F2324"
|
C active_border_color "#1F2324"
|
||||||
bspc config focused_border_color "#008DCD"
|
C focused_border_color "#008DCD"
|
||||||
bspc config presel_feedback_color "#51AFEF"
|
C presel_feedback_color "#51AFEF"
|
||||||
bspc config urgent_border_color "#FF6C6B"
|
C urgent_border_color "#FF6C6B"
|
||||||
|
|
||||||
###== BSPWM Rules
|
###== BSPWM Rules
|
||||||
bspc rule -a kitty desktop='^1' focus=on follow=on
|
R kitty desktop='^1' focus=on follow=on
|
||||||
bspc rule -a Google-chrome desktop='^2' focus=on follow=on
|
R Google-chrome desktop='^2' focus=on follow=on
|
||||||
bspc rule -a LibreWolf desktop='^2' focus=on follow=on
|
R LibreWolf desktop='^2' focus=on follow=on
|
||||||
bspc rule -a Code desktop='^3' focus=on follow=on
|
R Code desktop='^3' focus=on follow=on
|
||||||
bspc rule -a '*:nvim' desktop='^3' focus=on follow=off
|
R '*:nvim' desktop='^3' focus=on follow=off
|
||||||
bspc rule -a Todoist desktop='^4' focus=on follow=off
|
R Todoist desktop='^4' focus=on follow=off
|
||||||
bspc rule -a Joplin desktop='^4' focus=on follow=on
|
R Joplin desktop='^4' focus=on follow=on
|
||||||
bspc rule -a Simplenote desktop='^4' focus=on follow=on
|
R Simplenote desktop='^4' focus=on follow=on
|
||||||
bspc rule -a '*:ranger' desktop='^5' focus=on follow=off
|
R '*:ranger' desktop='^5' focus=on follow=off
|
||||||
bspc rule -a discord desktop='^6' focus=off follow=off
|
R discord desktop='^6' focus=off follow=off
|
||||||
bspc rule -a telegram-desktop desktop='^6' focus=off follow=on
|
R TelegramDesktop desktop='^6' focus=off follow=on
|
||||||
bspc rule -a KeePassXC desktop='^7' focus=on follow=off
|
R KeePassXC desktop='^7' focus=on follow=off
|
||||||
|
R Zathura desktop='^9' focus=on follow=on state=tiled
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
[settings]
|
[settings]
|
||||||
enable-ipc = true
|
enable-ipc = true
|
||||||
format-padding = 1
|
format-padding = 1
|
||||||
screenchange-reload = true
|
#screenchange-reload = true
|
||||||
pseudo-transparency = true
|
#pseudo-transparency = true
|
||||||
|
|
||||||
[colors]
|
[colors]
|
||||||
background = #262A2B
|
background = #262A2B
|
||||||
|
|
@ -34,7 +34,6 @@ fixed-center = true
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
wm-restack = bspwm
|
wm-restack = bspwm
|
||||||
override-redirect = true
|
|
||||||
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
|
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
|
||||||
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
|
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
|
||||||
modules-left = bspwm
|
modules-left = bspwm
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ super + q
|
||||||
bspc node -c
|
bspc node -c
|
||||||
|
|
||||||
super + control + r
|
super + control + r
|
||||||
bspc wm -r; sxhkd -c ~/.config/bspwm/sxhkd
|
bspc wm -r && pkill sxhkd && sxhkd -c ~/.config/bspwm/sxhkd
|
||||||
|
|
||||||
### == BSPWM windows
|
### == BSPWM windows
|
||||||
## Resize window
|
## Resize window
|
||||||
|
|
|
||||||
|
|
@ -66,8 +66,10 @@ set list listchars=tab:\|·,trail:~,extends:>,precedes:<,space:·
|
||||||
set visualbell t_vb=
|
set visualbell t_vb=
|
||||||
|
|
||||||
"== Settings for specific files
|
"== Settings for specific files
|
||||||
autocmd FileType python,go,json setlocal et sw=4 ts=4
|
autocmd FileType python,json setlocal ex sw=4 ts=4
|
||||||
autocmd FileType css,javascript,javascriptreact,yaml setlocal noet sw=2 ts=2
|
autocmd FileType go setlocal noex sw=4 ts=4
|
||||||
|
autocmd FileType javascript,javascriptreact setlocal noet sw=2 ts=2
|
||||||
|
autocmd FileType css,yaml setlocal ex sw=4 ts=4
|
||||||
|
|
||||||
"== Aliases
|
"== Aliases
|
||||||
command! WQ :wq
|
command! WQ :wq
|
||||||
|
|
@ -109,7 +111,6 @@ nnoremap spk :wincmd L<CR>
|
||||||
|
|
||||||
" Tab
|
" Tab
|
||||||
nnoremap tn :tabnew<CR>
|
nnoremap tn :tabnew<CR>
|
||||||
nnoremap tc :tabclose<CR>
|
|
||||||
noremap <A-1> :tabn 1<CR>
|
noremap <A-1> :tabn 1<CR>
|
||||||
noremap <A-2> :tabn 2<CR>
|
noremap <A-2> :tabn 2<CR>
|
||||||
noremap <A-3> :tabn 3<CR>
|
noremap <A-3> :tabn 3<CR>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#== Appearance
|
#== Appearance
|
||||||
set colorscheme solarized
|
set colorscheme solarized
|
||||||
set confirm_on_delete always
|
set confirm_on_delete multiple
|
||||||
set automatically_count_files false
|
set automatically_count_files false
|
||||||
|
|
||||||
#== General
|
#== General
|
||||||
|
|
@ -31,3 +31,7 @@ map dD delete
|
||||||
map dT trash
|
map dT trash
|
||||||
map <c-k> tab_shift 1
|
map <c-k> tab_shift 1
|
||||||
map <c-j> tab_shift -1
|
map <c-j> tab_shift -1
|
||||||
|
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
|
||||||
|
|
|
||||||
18
config/zathura/zathurarc
Normal file
18
config/zathura/zathurarc
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
set font "JetBrains Mono 10"
|
||||||
|
set default-fg "#DFDFDF"
|
||||||
|
set default-bg "#262A2B"
|
||||||
|
|
||||||
|
set statusbar-fg "#CED4DA"
|
||||||
|
set statusbar-bg "#1F2324"
|
||||||
|
set statusbar-h-padding 10
|
||||||
|
set statusbar-v-padding 10
|
||||||
|
|
||||||
|
set inputbar-fg "#FFFFFF"
|
||||||
|
set inputbar-bg "#1F2324"
|
||||||
|
|
||||||
|
set completion-bg "#262A2B"
|
||||||
|
set completion-fg "#FFFFFF"
|
||||||
|
set completion-highlight-bg "#262A2B"
|
||||||
|
set completion-highlight-fg "#51AFEF"
|
||||||
|
set completion-group-bg "#262A2B"
|
||||||
|
set completion-group-fg "#51AFEF"
|
||||||
2
zshrc
2
zshrc
|
|
@ -1,4 +1,4 @@
|
||||||
export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/go/bin:$HOME/.local/bin:$PATH"
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
|
|
||||||
### Oh my zsh
|
### Oh my zsh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue