mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update i3(add i3blocks), bspwm, nvim, tmux, ranger, zsh
This commit is contained in:
parent
53d009b671
commit
5374db696a
11 changed files with 137 additions and 33 deletions
|
|
@ -46,8 +46,9 @@ bspc rule -a Code desktop='^3' focus=on follow=on
|
|||
bspc rule -a '*:nvim' desktop='^3' focus=on follow=on
|
||||
bspc rule -a '*:ranger' desktop='^4' focus=on follow=off
|
||||
bspc rule -a Thunar desktop='^4' focus=on follow=off
|
||||
bspc rule -a Joplin desktop='^5' focus=on follow=off
|
||||
bspc rule -a discord desktop='^6' focus=on follow=off
|
||||
bspc rule -a Joplin desktop='^5' focus=on follow=on
|
||||
bspc rule -a Simplenote desktop='^5' focus=on follow=on
|
||||
bspc rule -a discord desktop='^6' focus=off follow=off
|
||||
bspc rule -a telegram-desktop desktop='^6' focus=off follow=off
|
||||
bspc rule -a KeePassXC desktop='^7' focus=on follow=off
|
||||
bspc rule -a Spotify desktop='^9' focus=on follow=on
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@ foreground = ${colors.foreground}
|
|||
wm-restack = bspwm
|
||||
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
|
||||
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
|
||||
modules-left = bspwm
|
||||
modules-center = windowname
|
||||
modules-right = keyboard pulseaudio weather wifi-signal archupd time
|
||||
modules-left = bspwm windowname
|
||||
modules-center = time date weather
|
||||
modules-right = keyboard pulseaudio archupd wifi-signal
|
||||
tray-position = right
|
||||
tray-padding = 0
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ interval = 3
|
|||
[module/keyboard]
|
||||
type = internal/xkeyboard
|
||||
format-prefix = ""
|
||||
label-layout = %layout%
|
||||
label-layout = %layout%
|
||||
blacklist-0 = num lock
|
||||
blacklist-1 = scroll lock
|
||||
blacklist-2= caps lock
|
||||
|
|
@ -93,12 +93,12 @@ format-prefix = " "
|
|||
[module/windowname]
|
||||
type = internal/xwindow
|
||||
label = %title%
|
||||
label-maxlen = 90
|
||||
label-maxlen = 50
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 600
|
||||
date = %d.%m.%Y
|
||||
date = %d.%m
|
||||
label = %date%
|
||||
|
||||
[module/time]
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ hide_edge_borders smart
|
|||
|
||||
############ Variables ###########
|
||||
set $terminal alacritty
|
||||
set $browser firefox
|
||||
set $browser google-chrome-stable
|
||||
set $filemanager alacritty --title=ranger -e ranger
|
||||
set $codeeditor alacritty --title=nvim -e nvim
|
||||
set $guicode code
|
||||
|
|
@ -73,7 +73,6 @@ bindsym $mod+Shift+w exec $browser
|
|||
bindsym $mod+Shift+f exec $filemanager
|
||||
bindsym $mod+Shift+e exec $codeeditor
|
||||
bindsym $mod+Shift+c exec $guicode
|
||||
bindsym $mod+Shift+d exec $documentationreader
|
||||
|
||||
# Sceenshot
|
||||
bindsym --release Print exec scrot -s /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png
|
||||
|
|
@ -88,8 +87,8 @@ bindsym $mod+minus exec "amixer sset Master 2%-"
|
|||
bindsym $mod+Shift+minus exec "amixer sset Master toggle"
|
||||
|
||||
######### Window preferens ########
|
||||
assign [class="Alacritty"] $ws1
|
||||
assign [class="(?i)firefox"] $ws2
|
||||
assign [class="(?i)alacritty|kitty"] $ws1
|
||||
assign [class="(?i)firefox|google-chorome-stable"] $ws2
|
||||
assign [class="(?i)code|vscodium|subl"] $ws3
|
||||
assign [title="nvim"] $ws3
|
||||
assign [class="(?!)thunar"] $ws4
|
||||
|
|
@ -164,7 +163,8 @@ bindsym $mod+Shift+9 move container to workspace $ws9
|
|||
|
||||
############### Bar ###############
|
||||
bar {
|
||||
status_command i3status-rs ~/.config/i3/i3status-rs.toml
|
||||
#status_command i3status -c ~/.config/i3/i3status
|
||||
status_command i3blocks -c ~/.config/i3/i3blocks
|
||||
font pango:JetBrains Mono 10
|
||||
position top
|
||||
colors {
|
||||
|
|
@ -186,3 +186,5 @@ client.unfocused #262A2B #262A2B #DFDFDF #262A2B #262A2B
|
|||
client.urgent #002b36 #262A2B #FFFFFF #262A2B #262A2B
|
||||
client.placeholder #000000 #000000 #FFFFFF #000000 #000000
|
||||
client.background #FFFFFF
|
||||
|
||||
# vim: ft=i3config
|
||||
|
|
|
|||
31
config/i3/i3blocks
Normal file
31
config/i3/i3blocks
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
separator=true
|
||||
separator_block_width=15
|
||||
|
||||
[keyboard]
|
||||
command=$HOME/.script/kblayout
|
||||
label=
|
||||
interval=repeat
|
||||
|
||||
[volume]
|
||||
command=$HOME/.script/volume
|
||||
interval=repeat
|
||||
label=
|
||||
signal=10
|
||||
|
||||
[weather]
|
||||
command=python $HOME/.config/polybar/scripts/weather.py
|
||||
interval=10
|
||||
|
||||
[wiki-signal]
|
||||
command=$HOME/.config/polybar/scripts/wifi-signal.sh
|
||||
label=
|
||||
interval=5
|
||||
|
||||
[updates-arch]
|
||||
command=$HOME/.config/polybar/scripts/updates-pacman-aur.sh
|
||||
interval=60
|
||||
|
||||
[time]
|
||||
command=date +%H:%M
|
||||
label=
|
||||
interval=60
|
||||
|
|
@ -3,6 +3,7 @@ call plug#begin('~/.vim/plugged')
|
|||
Plug 'itchyny/lightline.vim'
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
Plug 'maxboisvert/vim-simple-complete'
|
||||
Plug 'preservim/nerdcommenter'
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
call plug#end()
|
||||
|
||||
|
|
@ -50,6 +51,11 @@ set smartcase
|
|||
" Enable mode line
|
||||
set modeline
|
||||
|
||||
" File explorer
|
||||
let g:netrw_banner = 0
|
||||
let g:netrw_browse_split = 2
|
||||
let g:netrw_winsize = 15
|
||||
|
||||
" Auto reload file
|
||||
set autoread
|
||||
|
||||
|
|
@ -57,7 +63,7 @@ set autoread
|
|||
set hidden
|
||||
|
||||
" Spell checker
|
||||
set spell spelllang=en_us
|
||||
set nospell spelllang=en_us
|
||||
|
||||
" Space/tab indicator
|
||||
set list listchars=tab:>·,trail:~,extends:>,precedes:<,space:·
|
||||
|
|
@ -66,10 +72,10 @@ set list listchars=tab:>·,trail:~,extends:>,precedes:<,space:·
|
|||
set visualbell t_vb=
|
||||
|
||||
|
||||
" == Settings for specific files
|
||||
"== Settings for specific files
|
||||
autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
|
||||
autocmd FileType python,go,json setlocal expandtab shiftwidth=4 tabstop=4
|
||||
autocmd FileType html,css,javascript,yaml setlocal expandtab shiftwidth=2 tabstop=2
|
||||
autocmd FileType html,css,javascript,javascriptreact,yaml setlocal expandtab shiftwidth=2 tabstop=2
|
||||
|
||||
|
||||
"== Aliases
|
||||
|
|
@ -93,14 +99,21 @@ let g:lightline = {
|
|||
\ [ 'readonly', 'modified' ] ],
|
||||
\ 'right': [ [ 'lineinfo' ],
|
||||
\ [ 'percent' ],
|
||||
\ [ 'filename', 'filetype' ] ]
|
||||
\ }, }
|
||||
\ [ 'filename', 'filetype' ] ] }
|
||||
\ }
|
||||
|
||||
let g:NERDCreateDefaultMappings = 1
|
||||
let g:NERDSpaceDelims = 1
|
||||
let g:NERDCompactSexyComs = 1
|
||||
|
||||
"== Mapping
|
||||
let mapleader="'"
|
||||
|
||||
" Alternative keys
|
||||
noremap <C-s> :w<CR>
|
||||
noremap <C-n> :tabnew<CR>
|
||||
noremap <leader>ww :Wiki<CR>
|
||||
noremap <leader>e :Ve<CR>
|
||||
|
||||
" Window
|
||||
noremap <C-h> :wincmd h<CR>
|
||||
|
|
|
|||
|
|
@ -101,10 +101,6 @@ map ss shell tar -czvf file.tar.gz %s
|
|||
map sd shell 7z a file.7z %s
|
||||
map se shell extract %s
|
||||
|
||||
# "e" key
|
||||
map ee encrypt
|
||||
map ed decrypt
|
||||
|
||||
# "q"/quit keys/alias
|
||||
map Q quitall
|
||||
alias qa quitall
|
||||
|
|
@ -135,13 +131,13 @@ map ? help
|
|||
# Go keys
|
||||
map gh cd ~
|
||||
map gc cd ~/code
|
||||
map gd cd ~/docs
|
||||
map gb cd ~/docs/books
|
||||
map gd cd ~/Documents
|
||||
map gb cd ~/Documents/books
|
||||
map gm cd ~/.dotfiles
|
||||
map gn cd ~/bin
|
||||
map gs cd ~/.script
|
||||
map gv cd /media/veracrypt1
|
||||
map gw cd ~/downl
|
||||
map gw cd ~/Downloads
|
||||
|
||||
# Console
|
||||
map : console
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue