Update i3, polybar config, del spectrwm config, add catfatch script

This commit is contained in:
Smirnov Olexandr 2020-12-29 16:49:08 +02:00
parent e8de9a14cd
commit e3c86138ef
14 changed files with 174 additions and 411 deletions

View file

@ -37,8 +37,8 @@ background_opacity: 0.75
colors:
primary:
background: '0x262A2D'
foreground: '0xDFDFDF'
background: '0x262A2B'
foreground: '0xFFFFFF'
cursor:
text: '0x7D7D7D'
cursor: '0xDFDFDF'
@ -46,23 +46,23 @@ colors:
text: '0xEDEBD7'
background: '0x262A3B'
normal:
black: '0x32344a'
red: '0xf7768e'
green: '0x9ece6a'
yellow: '0xe0af68'
blue: '0x7aa2f7'
magenta: '0xad8ee6'
cyan: '0x449dab'
white: '0x9699a8'
black: '0x181818'
red: '0xab4642'
green: '0xa1b56c'
yellow: '0xf7ca88'
blue: '0x7cafc2'
magenta: '0xba8baf'
cyan: '0x86c1b9'
white: '0xd8d8d8'
bright:
black: '0x444b6a'
red: '0xff7a93'
green: '0xb9f27c'
yellow: '0xff9e64'
blue: '0x7da6ff'
magenta: '0xbb9af7'
cyan: '0x0db9d7'
white: '0xacb0d0'
black: '0x585858'
red: '0xab4642'
green: '0xa1b56c'
yellow: '0xf7ca88'
blue: '0x7cafc2'
magenta: '0xba8baf'
cyan: '0x86c1b9'
white: '0xf8f8f8'
key_bindings:
- { key: V, mods: Control|Shift, action: Paste }

View file

@ -16,89 +16,79 @@ new_float pixel
hide_edge_borders smart
############ Variables ###########
set $terminal kitty
set $terminal alacritty
set $browser firefox
set $filemanager pcmanfm
set $filemanager thunar
############ Autostart ############
exec --no-startup-id exec picom -b
exec --no-startup-id exec nmcli radio wifi on && nmcli device wifi connect $(echo $WIFINAME) password $(echo $WIFIPASS) name net
#exec --no-startup-id exec redshift-gtk
exec --no-startup-id exec picom --experimental-backends -b
exec --no-startup-id exec nitrogen --restore
exec --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
exec --no-startup-id exec org.telegram.desktop
#exec --no-startup-id exec conky
#exec --no-startup-id exec discord
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id xautolock -time 3 -locker "betterlockscreen --off 180 -t \"Computer is lockerd\" -l"
exec_always --no-startup-id $HOME/.config/i3/bar.sh
#exec --no-startup-id exec conky
#exec --no-startup-id exec redshift-gtk
#exec --no-startup-id exec discord
############ Key bindings #########
############## WM keys ############
### I3
# Kill focus window
# Kill window
bindsym $mod+q kill
# Restart i3wm
bindsym $mod+Control+r restart
# Focus the parent container
bindsym $mod+a focus parent
# Floating window
bindsym $mod+Shift+space floating toggle
# Floating layout
bindsym $mod+Tab floating toggle
# Tab layout
bindsym $mod+w layout tabbed
# Split layout
bindsym $mod+e layout toggle split
# Splits
bindsym $mod+b split h
bindsym $mod+v split v
# Change container layout(stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Scratchpad
bindsym $mod+Shift+grave move scratchpad
bindsym $mod+grave scratchpad show, floating disable
### Launchers
############## User key ###########
# Menus
bindsym $mod+Shift+apostrophe exec "rofi -show run"
bindsym $mod+Shift+Return exec "rofi -show drun"
bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh -h 24
bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh -h 24
bindsym $mod+Control+i exec passmenu -h 24 -p Passwords
### Applications
# Apps
bindsym $mod+Return exec $terminal
bindsym $mod+F2 exec $browser
bindsym $mod+F4 exec $filemanager
bindsym --release $mod+Shift+Escape exec xkill
bindsym $mod+$alt+t exec $terminal nvim .todo
bindsym $mod+f exec $filemanager
### Sceenshot
# Sceenshot
bindsym --release Print exec "scrot -s /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png"
bindsym --release Shift+Print exec "scrot /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png"
# Lockscreen
bindsym $mod+Shift+z exec betterlockscreen --off 180 -t \"Computer is lockerd\" -l
### Volume
bindsym $mod+plus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +5%"
bindsym $mod+minus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -5%"
# Volume
bindsym $mod+plus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +2%"
bindsym $mod+minus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -2%"
bindsym $mod+Shift+minus exec "pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle"
######### Window preferens ########
#assign [class="Kitty"] $ws1
#assign [class="(?i)chromium|firefox|qutebrowser"] $ws2
#assign [class="(?i)subl|code|emacs"] $ws3
#assign [class="(?i)thunar"] $ws4
#assign [title="Notable|Simplenote"] $ws5
assign [class="(?i)firefox|qutebrowser"] $ws2
assign [class="(?i)telegram|discord|viber"] $ws6
assign [title="KeePassXC"] $ws7
#for_window [title="Ranger_FM"] move to workspace $ws4
#for_window [class="Spotify"] move to workspace $ws9
for_window [class="(?i)mousepad"] floating enable
for_window [class="(?i)lxappearance|qt5ct"] floating enable
for_window [class="(?i)nitrogen"] floating enable
#focus_on_window_activation focus
############## Gaps ###############
#gaps inner 4
#smart_gaps on
##### Change containet focus ######
########## Change focus ##########
bindsym $mod+h focus left
bindsym $mod+Left focus left
bindsym $mod+j focus down
@ -108,7 +98,7 @@ bindsym $mod+Up focus up
bindsym $mod+l focus right
bindsym $mod+Right focus right
##### Move focused container ######
########## Move window ############
bindsym $mod+Shift+h move left
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+j move down
@ -118,7 +108,7 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+l move right
bindsym $mod+Shift+Right move right
##### Restart focused window ######
########## Resize window ##########
bindsym $mod+Control+h resize shrink width 20 px or 20 ppt
bindsym $mod+Control+Left resize shrink width 20 px or 20 ppt
bindsym $mod+Control+j resize grow height 20 px or 20 ppt
@ -159,22 +149,6 @@ bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
############## Modes ##############
bindsym $mod+g mode "gaps"
mode "gaps" {
bindsym plus gaps inner current plus 2
bindsym minus gaps inner current minus 2
bindsym 0 gaps inner current set 0
bindsym Shift+plus gaps inner all plus 4
bindsym Shift+minus gaps inner all minus 4
bindsym Shift+0 gaps inner all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+g mode "default"
}
############## Colors #############
# Class Border Backgr Text Indicator Child_border
client.focused #008DCD #008DCD #FFFFFF #008DCD #008DCD

View file

@ -1,12 +1,13 @@
filetype plugin on
call plug#begin('~/.vim/plugged')
Plug 'nathanaelkane/vim-indent-guides' " Displaying indent levels
Plug 'voldikss/vim-floaterm' " Terminal window
Plug 'frazrepo/vim-rainbow' " Rainbow brackets
Plug 'airblade/vim-gitgutter' " Git indicator
Plug 'ap/vim-css-color' " CSS color preview
Plug 'mhinz/vim-startify' " Start page
Plug 'tpope/vim-surround' " HTML/XML tag cloaser
Plug 'itchyny/lightline.vim' " Status line
Plug 'nathanaelkane/vim-indent-guides' " Displaying indent levels
Plug 'voldikss/vim-floaterm' " Terminal window
Plug 'frazrepo/vim-rainbow' " Rainbow brackets
Plug 'airblade/vim-gitgutter' " Git indicator
Plug 'ap/vim-css-color' " CSS color preview
Plug 'mhinz/vim-startify' " Start page
Plug 'itchyny/lightline.vim' " Status line
Plug 'vimwiki/vimwiki', {'on': 'VimwikiIndex'} " Notes manager in (n)vim
" Color sheme
Plug 'Smirnov-O/nten16.vim'
@ -23,20 +24,14 @@ call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Language support
Plug 'pangloss/vim-javascript', {'for': 'javascript'}
Plug 'iamcco/markdown-preview.nvim', {'for': 'markdown'}
Plug 'dhruvasagar/vim-table-mode', {'for': 'markdown'}
Plug 'plasticboy/vim-markdown', {'for': 'markdown'}
Plug 'vim-python/python-syntax', {'for': 'python'}
Plug 'vim-scripts/indentpython.vim', {'for': 'python'}
Plug 'Olical/vim-scheme', {'for': 'scheme'}
Plug 'kovetskiy/sxhkd-vim', {'for': 'sxhkd'}
Plug 'mattn/emmet-vim', {'on': 'Emmet'}
Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'}
Plug 'dag/vim-fish', {'for': 'fish'}
Plug 'PotatoesMaster/i3-vim-syntax', {'for': 'i3'}
Plug 'fatih/vim-go', {'for': 'go'}
"Plug 'mitsuhiko/vim-jinja'
call plug#end()
" Colors
@ -63,7 +58,7 @@ set cursorline
" File encoding
set encoding=utf-8
set fileencodings=utf8,cp1251
set fileencodings=utf8
" Line wrap
set nowrap
@ -110,7 +105,7 @@ let g:lightline = {
\ }, }
" Nerdtree
let NERDTreeIgnore = ['__pycache__', '\.pyc$', '\.o$', '\.so$', '\.a$', '\.swp', '*\.swp', '\.swo', '\.swn', '\.swh', '\.swm', '\.swl', '\.swk', '\.sw*$', '[a-zA-Z]*egg[a-zA-Z]*', '.DS_Store']
let NERDTreeIgnore = ['__pycache__', '.DS_Store', '.git']
let g:NERDTreeWinPos = "right"
let g:NERDTreeWinSize = 28
let NERDTreeMinimalUI = 1
@ -118,6 +113,14 @@ let NERDTreeShowLineNumbers = 1
let NERDTreeShowHidden = 0
map <C-b> :NERDTreeToggle<CR>
" VimWiki
let g:vimwiki_markdown_link_ext = 0
let g:vimwiki_list = [{
\ 'path': '~/Documents/Notes',
\ 'syntax': 'markdown',
\ 'ext': '.md',
\ }]
" Coc
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
@ -134,6 +137,7 @@ nmap FD <Plug>(easymotion-overwin-f2)
nmap FS <Plug>(easymotion-bd-w)
" CtrlP
let g:ctrlp_custom_ignore = '\v[\/]\.git$'
imap <C-p> :CtrlP<CR>
nmap <C-p> :CtrlP<CR>
@ -173,7 +177,6 @@ let g:floaterm_height = 0.7
let g:floaterm_width = 0.6
let g:floaterm_autoclose = 2
nmap <A-t> :FloatermNew<CR>
imap <A-t> :FloatermNew<CR>
" == Maping
let mapleader=","
@ -207,5 +210,8 @@ noremap <A-8> :tabn 8<CR>
noremap <A-9> :tabn 9<CR>
" Buffer(s)
noremap <C-a> :bnext<CR>
noremap <C-s> :bprev<CR>
noremap <leader>p :bnext<CR>
noremap <leader>o :bprev<CR>
" Autostart
"autocmd VimEnter * execute "source ~/.config/nvim/init.vim"

View file

@ -49,7 +49,7 @@ use-damage = true;
log-level = "warn";
wintypes: {
tooltip = { fade = true; shadow = false; opacity = 1; focus = true; full-shadow = false; };
menu = { fade = true; shadow = false; };
menu = { fade = true; shadow = false; opacity = 1; };
popup_menu = { fade = true; shadow = false; };
dropdown_menu = { fade = true; shadow = false; };
utility = { fade = true; shadow = false; };

View file

@ -1,16 +1,16 @@
[settings]
screenchange-reload = true
pseudo-transparency = true
[colors]
background = #262A2B
foreground = #ffffff
foreground = #DFDFDF
secondary = #008DCD
alert = #008DCD
alert = #FF6C6B
[bar/i3bar]
width = 100%
height = 24
fixed-center = true
wm-restack = i3
background = ${colors.background}
@ -20,15 +20,10 @@ module-margin-right = 1
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
font-2 = Weather Icons:size=7;2
modules-left = i3
modules-right = keyboard pulseaudio backlight wifi-signal time
modules-left = i3 pacman-up
modules-right = keyboard pulseaudio backlight wifi-signal time date
tray-position = right
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[settings]
screenchange-reload = true
[module/i3]
type = internal/i3
format = <label-state><label-mode>
@ -69,139 +64,61 @@ ws-icon-6 = "7;7 "
ws-icon-7 = "8;8 "
ws-icon-8 = "9;9 "
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; INCLUDE MODULES
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/backlight]
type = internal/xbacklight
format = <ramp> <label>
label = %percentage%%
ramp-0 = 
[module/wifi-name]
type = internal/network
interface = wlp3s0
format-connected = <ramp-signal> <label-connected>
label-connected = %essid%
format-disconnected =  No sig
format-disconnected =
ramp-signal-0 = 
interval = 3.0
interval = 3
[module/wifi-signal]
type = custom/script
label =  %output:%%
exec = ~/.config/polybar/scripts/wifi-signal.sh
interval = 3.0
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
mount-1 = /home
label-mounted =  %mountpoint%: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground}
interval = 3
[module/pulseaudio]
type = internal/pulseaudio
interval = 2
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
label-muted = 
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
ramp-volume-3 = 
ramp-volume-4 = 
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground}
label =  CPU %percentage%%
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
label =  MEM %percentage_used%%
ramp-volume-0 = 
[module/weather]
type = custom/script
exec = python3 ~/.config/polybar/scripts/weather.py
interval = 60
label-font = 1
[module/spotify]
type = custom/script
interval = 1
format = <label>
exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'
format-underline = ${colors.alert}
[module/updates-pacman]
[module/pacman-up]
type = custom/script
exec = ~/.config/polybar/scripts/updates-pacman-aur.sh
interval = 60
[module/keyboard]
type = internal/xkeyboard
label-NAME-maxlen = 10
format-prefix = ""
label-layout =  %layout%
blacklist-0 = num lock
blacklist-1 = scroll lock
blacklist-2= caps lock
[module/microphone]
type = custom/script
label = %output:0:40:...%
exec = ~/.config/polybar/scripts/microphone.sh  
click-left = ~/.config/polybar/scripts/microphone.sh --click
interval = 0
[module/sp2]
type = custom/text
content = "┇"
[module/date]
type = internal/date
interval = 600
date = %b %e
date = %d.%m.%Y
label =  %date%
[module/time]
type = internal/date
interval = 0
time = %H:%M
label =  %time%
[module/title]
type = internal/xwindow
label = %title:0:50:...%
label-empty =
label-maxlen = 50
[module/clipmenu]
type = custom/text
content = ""
click-left = "CM_LAUNCHER=rofi clipmenu"
interval = 0

View file

@ -45,14 +45,20 @@ filetype <text/*> nvim
fileviewer <text/*> env -uCOLORTERM bat --color always --wrap never --pager never %c -p
filextype *.pdf zathura %c %i &
fileviewer *.pdf
\ vifmimg pdfpreview %px %py %pw %ph %c
\ %pc
\ vifmimg clear
" \ pdftotext -nopgbrk %c -
filetype <audio/*> mocp %c %i &
filetype <video/*> mpv %c %i &
filextype <image/*> sxiv %c %i &
fileviewer <image/*>
\ kitty icat --place=%pwx%ph@%pxx%py %c
\ %pc
\ kitty icat --clear
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm
\ ~/.config/vifm/vifmimg draw %px %py %pw %ph %c
\ %pc
\ ~/.config/vifm/vifmimg clear
filextype *.py nvim %c %i &