mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Add zathura
This commit is contained in:
parent
e916fc2103
commit
633e8ad6cd
10 changed files with 98 additions and 68 deletions
|
|
@ -1,15 +1,20 @@
|
|||
#!/bin/sh
|
||||
###== Function
|
||||
R() {
|
||||
###== Functions
|
||||
A() {
|
||||
if ! pgrep $1
|
||||
then $@& fi
|
||||
}
|
||||
C() {
|
||||
bspc config $@
|
||||
}
|
||||
R() {
|
||||
bspc rule -a $@
|
||||
}
|
||||
|
||||
###== Autostart
|
||||
R feh --randomize --bg-scale ~/Pictures/wallp &
|
||||
R sxhkd -c ~/.config/bspwm/sxhkd &
|
||||
R lxsession &
|
||||
R picom -b &
|
||||
A feh --randomize --bg-scale ~/Pictures/wallp &
|
||||
A sxhkd -c ~/.config/bspwm/sxhkd &
|
||||
A picom -b &
|
||||
~/.config/bspwm/polybar/bar.sh &
|
||||
|
||||
###== BSPWM
|
||||
|
|
@ -18,31 +23,32 @@ R picom -b &
|
|||
bspc monitor -d 1 2 3 4 5 6 7 8 9
|
||||
|
||||
# General
|
||||
bspc config border_width 2
|
||||
bspc config window_gap 4
|
||||
bspc config split_ratio 0.50
|
||||
bspc config borderless_monocle true
|
||||
bspc config gapless_monocle true
|
||||
bspc config single_monocle true
|
||||
bspc config focus_follows_pointer true
|
||||
C border_width 2
|
||||
C window_gap 4
|
||||
C split_ratio 0.50
|
||||
C borderless_monocle true
|
||||
C gapless_monocle true
|
||||
C single_monocle true
|
||||
C focus_follows_pointer true
|
||||
|
||||
# Colors
|
||||
bspc config normal_border_color "#262A2B"
|
||||
bspc config active_border_color "#1F2324"
|
||||
bspc config focused_border_color "#008DCD"
|
||||
bspc config presel_feedback_color "#51AFEF"
|
||||
bspc config urgent_border_color "#FF6C6B"
|
||||
C normal_border_color "#262A2B"
|
||||
C active_border_color "#1F2324"
|
||||
C focused_border_color "#008DCD"
|
||||
C presel_feedback_color "#51AFEF"
|
||||
C urgent_border_color "#FF6C6B"
|
||||
|
||||
###== BSPWM Rules
|
||||
bspc rule -a kitty desktop='^1' focus=on follow=on
|
||||
bspc rule -a Google-chrome desktop='^2' focus=on follow=on
|
||||
bspc rule -a LibreWolf desktop='^2' focus=on follow=on
|
||||
bspc rule -a Code desktop='^3' focus=on follow=on
|
||||
bspc rule -a '*:nvim' desktop='^3' focus=on follow=off
|
||||
bspc rule -a Todoist desktop='^4' focus=on follow=off
|
||||
bspc rule -a Joplin desktop='^4' focus=on follow=on
|
||||
bspc rule -a Simplenote desktop='^4' focus=on follow=on
|
||||
bspc rule -a '*:ranger' desktop='^5' focus=on follow=off
|
||||
bspc rule -a discord desktop='^6' focus=off follow=off
|
||||
bspc rule -a telegram-desktop desktop='^6' focus=off follow=on
|
||||
bspc rule -a KeePassXC desktop='^7' focus=on follow=off
|
||||
R kitty desktop='^1' focus=on follow=on
|
||||
R Google-chrome desktop='^2' focus=on follow=on
|
||||
R LibreWolf desktop='^2' focus=on follow=on
|
||||
R Code desktop='^3' focus=on follow=on
|
||||
R '*:nvim' desktop='^3' focus=on follow=off
|
||||
R Todoist desktop='^4' focus=on follow=off
|
||||
R Joplin desktop='^4' focus=on follow=on
|
||||
R Simplenote desktop='^4' focus=on follow=on
|
||||
R '*:ranger' desktop='^5' focus=on follow=off
|
||||
R discord desktop='^6' focus=off follow=off
|
||||
R TelegramDesktop desktop='^6' focus=off follow=on
|
||||
R KeePassXC desktop='^7' focus=on follow=off
|
||||
R Zathura desktop='^9' focus=on follow=on state=tiled
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
[settings]
|
||||
enable-ipc = true
|
||||
format-padding = 1
|
||||
screenchange-reload = true
|
||||
pseudo-transparency = true
|
||||
#screenchange-reload = true
|
||||
#pseudo-transparency = true
|
||||
|
||||
[colors]
|
||||
background = #262A2B
|
||||
|
|
@ -34,7 +34,6 @@ fixed-center = true
|
|||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
wm-restack = bspwm
|
||||
override-redirect = true
|
||||
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
|
||||
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
|
||||
modules-left = bspwm
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ super + q
|
|||
bspc node -c
|
||||
|
||||
super + control + r
|
||||
bspc wm -r; sxhkd -c ~/.config/bspwm/sxhkd
|
||||
bspc wm -r && pkill sxhkd && sxhkd -c ~/.config/bspwm/sxhkd
|
||||
|
||||
### == BSPWM windows
|
||||
## Resize window
|
||||
|
|
|
|||
|
|
@ -66,8 +66,10 @@ set list listchars=tab:\|·,trail:~,extends:>,precedes:<,space:·
|
|||
set visualbell t_vb=
|
||||
|
||||
"== Settings for specific files
|
||||
autocmd FileType python,go,json setlocal et sw=4 ts=4
|
||||
autocmd FileType css,javascript,javascriptreact,yaml setlocal noet sw=2 ts=2
|
||||
autocmd FileType python,json setlocal ex sw=4 ts=4
|
||||
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
|
||||
command! WQ :wq
|
||||
|
|
@ -109,7 +111,6 @@ nnoremap spk :wincmd L<CR>
|
|||
|
||||
" Tab
|
||||
nnoremap tn :tabnew<CR>
|
||||
nnoremap tc :tabclose<CR>
|
||||
noremap <A-1> :tabn 1<CR>
|
||||
noremap <A-2> :tabn 2<CR>
|
||||
noremap <A-3> :tabn 3<CR>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#== Appearance
|
||||
set colorscheme solarized
|
||||
set confirm_on_delete always
|
||||
set confirm_on_delete multiple
|
||||
set automatically_count_files false
|
||||
|
||||
#== General
|
||||
|
|
@ -31,3 +31,7 @@ map dD delete
|
|||
map dT trash
|
||||
map <c-k> 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue