mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update i3, polybar config, del spectrwm config, add catfatch script
This commit is contained in:
parent
e8de9a14cd
commit
e3c86138ef
14 changed files with 174 additions and 411 deletions
47
bin/catfetch
Executable file
47
bin/catfetch
Executable file
|
|
@ -0,0 +1,47 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Kernel version
|
||||||
|
kernel=$(cat /proc/sys/kernel/osrelease|cut -d '-' -f1)
|
||||||
|
|
||||||
|
# Window manager name
|
||||||
|
[ ! "$wm" ] && [ "$DISPLAY" ] && command -v xprop >/dev/null && {
|
||||||
|
wmname="$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | cut -f2 -d \")"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Shell
|
||||||
|
shell=$(basename $SHELL)
|
||||||
|
|
||||||
|
# Pakages
|
||||||
|
manager=$(which dnf apt pacman apk yay xbps-query 2>/dev/null)
|
||||||
|
manager=${manager##*/}
|
||||||
|
case "$manager" in
|
||||||
|
apt) packages="$(dpkg-query -f '${binary:Package}\n' -W | wc -l)";;
|
||||||
|
pacman) packages="$(pacman -Q | wc -l)";;
|
||||||
|
apk) packages="$(apk list --installed | wc -l)";;
|
||||||
|
yay) packages="$(yay -Q | wc -l)";;
|
||||||
|
xbps-query) packages="$(xbps-query -l | wc -l)";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Colors ####
|
||||||
|
bold="\e[1m"
|
||||||
|
reset="\e[0m"
|
||||||
|
|
||||||
|
blue="\e[36m"
|
||||||
|
grey="\e[90m"
|
||||||
|
black='\e[30m'
|
||||||
|
red='\e[31m'
|
||||||
|
green='\e[32m'
|
||||||
|
yellow='\e[33m'
|
||||||
|
blue='\e[34m'
|
||||||
|
magenta='\e[35m'
|
||||||
|
cyan='\e[36m'
|
||||||
|
white='\e[37m'
|
||||||
|
|
||||||
|
echo -e " ${blue}${bold} WM ${reset}${wmname}"
|
||||||
|
echo -e " /\_/\ ${blue}${bold} SHELL ${reset}${shell}"
|
||||||
|
echo -e " (=^.^=) ${blue}${bold}KERNEL ${reset}${kernel}"
|
||||||
|
echo -e " (\") (\")_/ ${blue}${bold} PKG ${reset}${packages}"
|
||||||
|
echo -e " ${black}卑${red}卑${green}卑${yellow}卑${blue}卑${magenta}卑${cyan}卑${reset} "
|
||||||
|
exit 0
|
||||||
5
bin/ipp
Executable file
5
bin/ipp
Executable file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
if [ -f '/usr/bin/curl' ]
|
||||||
|
then curl ipinfo.io/ip
|
||||||
|
else wget -qO- ipinfo.io/ip
|
||||||
|
fi
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p' | grep -v '172.[0-9][0-9].0.1'
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
if [ -f '/usr/bin/curl' ]
|
|
||||||
then
|
|
||||||
curl ipinfo.io/ip
|
|
||||||
else
|
|
||||||
wget -qO- ipinfo.io/ip
|
|
||||||
fi
|
|
||||||
|
|
@ -37,8 +37,8 @@ background_opacity: 0.75
|
||||||
|
|
||||||
colors:
|
colors:
|
||||||
primary:
|
primary:
|
||||||
background: '0x262A2D'
|
background: '0x262A2B'
|
||||||
foreground: '0xDFDFDF'
|
foreground: '0xFFFFFF'
|
||||||
cursor:
|
cursor:
|
||||||
text: '0x7D7D7D'
|
text: '0x7D7D7D'
|
||||||
cursor: '0xDFDFDF'
|
cursor: '0xDFDFDF'
|
||||||
|
|
@ -46,23 +46,23 @@ colors:
|
||||||
text: '0xEDEBD7'
|
text: '0xEDEBD7'
|
||||||
background: '0x262A3B'
|
background: '0x262A3B'
|
||||||
normal:
|
normal:
|
||||||
black: '0x32344a'
|
black: '0x181818'
|
||||||
red: '0xf7768e'
|
red: '0xab4642'
|
||||||
green: '0x9ece6a'
|
green: '0xa1b56c'
|
||||||
yellow: '0xe0af68'
|
yellow: '0xf7ca88'
|
||||||
blue: '0x7aa2f7'
|
blue: '0x7cafc2'
|
||||||
magenta: '0xad8ee6'
|
magenta: '0xba8baf'
|
||||||
cyan: '0x449dab'
|
cyan: '0x86c1b9'
|
||||||
white: '0x9699a8'
|
white: '0xd8d8d8'
|
||||||
bright:
|
bright:
|
||||||
black: '0x444b6a'
|
black: '0x585858'
|
||||||
red: '0xff7a93'
|
red: '0xab4642'
|
||||||
green: '0xb9f27c'
|
green: '0xa1b56c'
|
||||||
yellow: '0xff9e64'
|
yellow: '0xf7ca88'
|
||||||
blue: '0x7da6ff'
|
blue: '0x7cafc2'
|
||||||
magenta: '0xbb9af7'
|
magenta: '0xba8baf'
|
||||||
cyan: '0x0db9d7'
|
cyan: '0x86c1b9'
|
||||||
white: '0xacb0d0'
|
white: '0xf8f8f8'
|
||||||
|
|
||||||
key_bindings:
|
key_bindings:
|
||||||
- { key: V, mods: Control|Shift, action: Paste }
|
- { key: V, mods: Control|Shift, action: Paste }
|
||||||
|
|
|
||||||
|
|
@ -16,89 +16,79 @@ new_float pixel
|
||||||
hide_edge_borders smart
|
hide_edge_borders smart
|
||||||
|
|
||||||
############ Variables ###########
|
############ Variables ###########
|
||||||
set $terminal kitty
|
set $terminal alacritty
|
||||||
set $browser firefox
|
set $browser firefox
|
||||||
set $filemanager pcmanfm
|
set $filemanager thunar
|
||||||
|
|
||||||
############ Autostart ############
|
############ Autostart ############
|
||||||
exec --no-startup-id exec picom -b
|
exec --no-startup-id exec picom --experimental-backends -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 nitrogen --restore
|
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 setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
|
||||||
exec --no-startup-id exec org.telegram.desktop
|
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 /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_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 window
|
||||||
# Kill focus window
|
|
||||||
bindsym $mod+q kill
|
bindsym $mod+q kill
|
||||||
|
|
||||||
# Restart i3wm
|
# Restart i3wm
|
||||||
bindsym $mod+Control+r restart
|
bindsym $mod+Control+r restart
|
||||||
# Focus the parent container
|
|
||||||
bindsym $mod+a focus parent
|
# Floating layout
|
||||||
# Floating window
|
bindsym $mod+Tab floating toggle
|
||||||
bindsym $mod+Shift+space floating toggle
|
|
||||||
|
# Tab layout
|
||||||
|
bindsym $mod+w layout tabbed
|
||||||
|
|
||||||
|
# Split layout
|
||||||
|
bindsym $mod+e layout toggle split
|
||||||
|
|
||||||
# Splits
|
# Splits
|
||||||
bindsym $mod+b split h
|
bindsym $mod+b split h
|
||||||
bindsym $mod+v split v
|
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
|
# Scratchpad
|
||||||
bindsym $mod+Shift+grave move scratchpad
|
bindsym $mod+Shift+grave move scratchpad
|
||||||
bindsym $mod+grave scratchpad show, floating disable
|
bindsym $mod+grave scratchpad show, floating disable
|
||||||
|
|
||||||
### Launchers
|
############## User key ###########
|
||||||
|
|
||||||
|
# Menus
|
||||||
bindsym $mod+Shift+apostrophe exec "rofi -show run"
|
bindsym $mod+Shift+apostrophe exec "rofi -show run"
|
||||||
bindsym $mod+Shift+Return exec "rofi -show drun"
|
bindsym $mod+Shift+Return exec "rofi -show drun"
|
||||||
bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh -h 24
|
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+u exec ~/.script/dmenu/dmenu-config-edit.sh -h 24
|
||||||
bindsym $mod+Control+i exec passmenu -h 24 -p Passwords
|
bindsym $mod+Control+i exec passmenu -h 24 -p Passwords
|
||||||
|
|
||||||
### Applications
|
# Apps
|
||||||
bindsym $mod+Return exec $terminal
|
bindsym $mod+Return exec $terminal
|
||||||
bindsym $mod+F2 exec $browser
|
bindsym $mod+F2 exec $browser
|
||||||
bindsym $mod+F4 exec $filemanager
|
bindsym $mod+f exec $filemanager
|
||||||
bindsym --release $mod+Shift+Escape exec xkill
|
|
||||||
bindsym $mod+$alt+t exec $terminal nvim .todo
|
|
||||||
|
|
||||||
|
# Sceenshot
|
||||||
### Sceenshot
|
|
||||||
bindsym --release Print exec "scrot -s /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png"
|
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"
|
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
|
# Volume
|
||||||
bindsym $mod+plus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +5%"
|
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 -5%"
|
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"
|
bindsym $mod+Shift+minus exec "pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle"
|
||||||
|
|
||||||
######### Window preferens ########
|
######### Window preferens ########
|
||||||
#assign [class="Kitty"] $ws1
|
assign [class="(?i)firefox|qutebrowser"] $ws2
|
||||||
#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)telegram|discord|viber"] $ws6
|
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
|
#focus_on_window_activation focus
|
||||||
|
|
||||||
############## Gaps ###############
|
########## Change focus ##########
|
||||||
#gaps inner 4
|
|
||||||
#smart_gaps on
|
|
||||||
|
|
||||||
##### Change containet focus ######
|
|
||||||
bindsym $mod+h focus left
|
bindsym $mod+h focus left
|
||||||
bindsym $mod+Left focus left
|
bindsym $mod+Left focus left
|
||||||
bindsym $mod+j focus down
|
bindsym $mod+j focus down
|
||||||
|
|
@ -108,7 +98,7 @@ bindsym $mod+Up focus up
|
||||||
bindsym $mod+l focus right
|
bindsym $mod+l focus right
|
||||||
bindsym $mod+Right focus right
|
bindsym $mod+Right focus right
|
||||||
|
|
||||||
##### Move focused container ######
|
########## Move window ############
|
||||||
bindsym $mod+Shift+h move left
|
bindsym $mod+Shift+h move left
|
||||||
bindsym $mod+Shift+Left move left
|
bindsym $mod+Shift+Left move left
|
||||||
bindsym $mod+Shift+j move down
|
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+l move right
|
||||||
bindsym $mod+Shift+Right 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+h resize shrink width 20 px or 20 ppt
|
||||||
bindsym $mod+Control+Left 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
|
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+8 move container to workspace $ws8
|
||||||
bindsym $mod+Shift+9 move container to workspace $ws9
|
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 #############
|
############## Colors #############
|
||||||
# Class Border Backgr Text Indicator Child_border
|
# Class Border Backgr Text Indicator Child_border
|
||||||
client.focused #008DCD #008DCD #FFFFFF #008DCD #008DCD
|
client.focused #008DCD #008DCD #FFFFFF #008DCD #008DCD
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
|
filetype plugin on
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
Plug 'nathanaelkane/vim-indent-guides' " Displaying indent levels
|
Plug 'nathanaelkane/vim-indent-guides' " Displaying indent levels
|
||||||
Plug 'voldikss/vim-floaterm' " Terminal window
|
Plug 'voldikss/vim-floaterm' " Terminal window
|
||||||
Plug 'frazrepo/vim-rainbow' " Rainbow brackets
|
Plug 'frazrepo/vim-rainbow' " Rainbow brackets
|
||||||
Plug 'airblade/vim-gitgutter' " Git indicator
|
Plug 'airblade/vim-gitgutter' " Git indicator
|
||||||
Plug 'ap/vim-css-color' " CSS color preview
|
Plug 'ap/vim-css-color' " CSS color preview
|
||||||
Plug 'mhinz/vim-startify' " Start page
|
Plug 'mhinz/vim-startify' " Start page
|
||||||
Plug 'tpope/vim-surround' " HTML/XML tag cloaser
|
Plug 'itchyny/lightline.vim' " Status line
|
||||||
Plug 'itchyny/lightline.vim' " Status line
|
Plug 'vimwiki/vimwiki', {'on': 'VimwikiIndex'} " Notes manager in (n)vim
|
||||||
|
|
||||||
" Color sheme
|
" Color sheme
|
||||||
Plug 'Smirnov-O/nten16.vim'
|
Plug 'Smirnov-O/nten16.vim'
|
||||||
|
|
@ -23,20 +24,14 @@ call plug#begin('~/.vim/plugged')
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
|
||||||
" Language support
|
" Language support
|
||||||
Plug 'pangloss/vim-javascript', {'for': 'javascript'}
|
|
||||||
Plug 'iamcco/markdown-preview.nvim', {'for': 'markdown'}
|
Plug 'iamcco/markdown-preview.nvim', {'for': 'markdown'}
|
||||||
Plug 'dhruvasagar/vim-table-mode', {'for': 'markdown'}
|
Plug 'dhruvasagar/vim-table-mode', {'for': 'markdown'}
|
||||||
Plug 'plasticboy/vim-markdown', {'for': 'markdown'}
|
Plug 'plasticboy/vim-markdown', {'for': 'markdown'}
|
||||||
Plug 'vim-python/python-syntax', {'for': 'python'}
|
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 'kovetskiy/sxhkd-vim', {'for': 'sxhkd'}
|
||||||
Plug 'mattn/emmet-vim', {'on': 'Emmet'}
|
Plug 'mattn/emmet-vim', {'on': 'Emmet'}
|
||||||
Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'}
|
Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'}
|
||||||
Plug 'dag/vim-fish', {'for': 'fish'}
|
|
||||||
Plug 'PotatoesMaster/i3-vim-syntax', {'for': 'i3'}
|
Plug 'PotatoesMaster/i3-vim-syntax', {'for': 'i3'}
|
||||||
Plug 'fatih/vim-go', {'for': 'go'}
|
|
||||||
"Plug 'mitsuhiko/vim-jinja'
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Colors
|
" Colors
|
||||||
|
|
@ -63,7 +58,7 @@ set cursorline
|
||||||
|
|
||||||
" File encoding
|
" File encoding
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
set fileencodings=utf8,cp1251
|
set fileencodings=utf8
|
||||||
|
|
||||||
" Line wrap
|
" Line wrap
|
||||||
set nowrap
|
set nowrap
|
||||||
|
|
@ -110,7 +105,7 @@ let g:lightline = {
|
||||||
\ }, }
|
\ }, }
|
||||||
|
|
||||||
" Nerdtree
|
" 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:NERDTreeWinPos = "right"
|
||||||
let g:NERDTreeWinSize = 28
|
let g:NERDTreeWinSize = 28
|
||||||
let NERDTreeMinimalUI = 1
|
let NERDTreeMinimalUI = 1
|
||||||
|
|
@ -118,6 +113,14 @@ let NERDTreeShowLineNumbers = 1
|
||||||
let NERDTreeShowHidden = 0
|
let NERDTreeShowHidden = 0
|
||||||
map <C-b> :NERDTreeToggle<CR>
|
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
|
" Coc
|
||||||
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||||
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-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)
|
nmap FS <Plug>(easymotion-bd-w)
|
||||||
|
|
||||||
" CtrlP
|
" CtrlP
|
||||||
|
let g:ctrlp_custom_ignore = '\v[\/]\.git$'
|
||||||
imap <C-p> :CtrlP<CR>
|
imap <C-p> :CtrlP<CR>
|
||||||
nmap <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_width = 0.6
|
||||||
let g:floaterm_autoclose = 2
|
let g:floaterm_autoclose = 2
|
||||||
nmap <A-t> :FloatermNew<CR>
|
nmap <A-t> :FloatermNew<CR>
|
||||||
imap <A-t> :FloatermNew<CR>
|
|
||||||
|
|
||||||
" == Maping
|
" == Maping
|
||||||
let mapleader=","
|
let mapleader=","
|
||||||
|
|
@ -207,5 +210,8 @@ noremap <A-8> :tabn 8<CR>
|
||||||
noremap <A-9> :tabn 9<CR>
|
noremap <A-9> :tabn 9<CR>
|
||||||
|
|
||||||
" Buffer(s)
|
" Buffer(s)
|
||||||
noremap <C-a> :bnext<CR>
|
noremap <leader>p :bnext<CR>
|
||||||
noremap <C-s> :bprev<CR>
|
noremap <leader>o :bprev<CR>
|
||||||
|
|
||||||
|
" Autostart
|
||||||
|
"autocmd VimEnter * execute "source ~/.config/nvim/init.vim"
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ use-damage = true;
|
||||||
log-level = "warn";
|
log-level = "warn";
|
||||||
wintypes: {
|
wintypes: {
|
||||||
tooltip = { fade = true; shadow = false; opacity = 1; focus = true; full-shadow = false; };
|
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; };
|
popup_menu = { fade = true; shadow = false; };
|
||||||
dropdown_menu = { fade = true; shadow = false; };
|
dropdown_menu = { fade = true; shadow = false; };
|
||||||
utility = { fade = true; shadow = false; };
|
utility = { fade = true; shadow = false; };
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
[settings]
|
[settings]
|
||||||
|
screenchange-reload = true
|
||||||
pseudo-transparency = true
|
pseudo-transparency = true
|
||||||
|
|
||||||
[colors]
|
[colors]
|
||||||
background = #262A2B
|
background = #262A2B
|
||||||
foreground = #ffffff
|
foreground = #DFDFDF
|
||||||
secondary = #008DCD
|
secondary = #008DCD
|
||||||
alert = #008DCD
|
alert = #FF6C6B
|
||||||
|
|
||||||
[bar/i3bar]
|
[bar/i3bar]
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 24
|
height = 24
|
||||||
|
|
||||||
fixed-center = true
|
fixed-center = true
|
||||||
wm-restack = i3
|
wm-restack = i3
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
|
|
@ -20,15 +20,10 @@ module-margin-right = 1
|
||||||
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
|
||||||
font-2 = Weather Icons:size=7;2
|
font-2 = Weather Icons:size=7;2
|
||||||
|
modules-left = i3 pacman-up
|
||||||
modules-left = i3
|
modules-right = keyboard pulseaudio backlight wifi-signal time date
|
||||||
modules-right = keyboard pulseaudio backlight wifi-signal time
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
[settings]
|
|
||||||
screenchange-reload = true
|
|
||||||
|
|
||||||
[module/i3]
|
[module/i3]
|
||||||
type = internal/i3
|
type = internal/i3
|
||||||
format = <label-state><label-mode>
|
format = <label-state><label-mode>
|
||||||
|
|
@ -69,139 +64,61 @@ ws-icon-6 = "7;7 "
|
||||||
ws-icon-7 = "8;8 "
|
ws-icon-7 = "8;8 "
|
||||||
ws-icon-8 = "9;9 "
|
ws-icon-8 = "9;9 "
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; INCLUDE MODULES
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
[module/backlight]
|
[module/backlight]
|
||||||
type = internal/xbacklight
|
type = internal/xbacklight
|
||||||
format = <ramp> <label>
|
format = <ramp> <label>
|
||||||
label = %percentage%%
|
label = %percentage%%
|
||||||
ramp-0 =
|
ramp-0 =
|
||||||
|
|
||||||
|
|
||||||
[module/wifi-name]
|
[module/wifi-name]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = wlp3s0
|
interface = wlp3s0
|
||||||
format-connected = <ramp-signal> <label-connected>
|
format-connected = <ramp-signal> <label-connected>
|
||||||
label-connected = %essid%
|
label-connected = %essid%
|
||||||
format-disconnected = No sig
|
format-disconnected =
|
||||||
ramp-signal-0 =
|
ramp-signal-0 =
|
||||||
interval = 3.0
|
interval = 3
|
||||||
|
|
||||||
|
|
||||||
[module/wifi-signal]
|
[module/wifi-signal]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
label = %output:%%
|
label = %output:%%
|
||||||
exec = ~/.config/polybar/scripts/wifi-signal.sh
|
exec = ~/.config/polybar/scripts/wifi-signal.sh
|
||||||
interval = 3.0
|
interval = 3
|
||||||
|
|
||||||
|
|
||||||
[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}
|
|
||||||
|
|
||||||
|
|
||||||
[module/pulseaudio]
|
[module/pulseaudio]
|
||||||
type = internal/pulseaudio
|
type = internal/pulseaudio
|
||||||
|
interval = 2
|
||||||
format-volume = <ramp-volume> <label-volume>
|
format-volume = <ramp-volume> <label-volume>
|
||||||
label-volume = %percentage%%
|
label-volume = %percentage%%
|
||||||
label-volume-foreground = ${root.foreground}
|
label-volume-foreground = ${root.foreground}
|
||||||
label-muted =
|
label-muted =
|
||||||
|
ramp-volume-0 =
|
||||||
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%%
|
|
||||||
|
|
||||||
|
|
||||||
[module/weather]
|
[module/weather]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = python3 ~/.config/polybar/scripts/weather.py
|
exec = python3 ~/.config/polybar/scripts/weather.py
|
||||||
interval = 60
|
interval = 60
|
||||||
label-font = 1
|
|
||||||
|
|
||||||
|
[module/pacman-up]
|
||||||
[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]
|
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = ~/.config/polybar/scripts/updates-pacman-aur.sh
|
exec = ~/.config/polybar/scripts/updates-pacman-aur.sh
|
||||||
interval = 60
|
interval = 60
|
||||||
|
|
||||||
|
|
||||||
[module/keyboard]
|
[module/keyboard]
|
||||||
type = internal/xkeyboard
|
type = internal/xkeyboard
|
||||||
label-NAME-maxlen = 10
|
|
||||||
format-prefix = ""
|
format-prefix = ""
|
||||||
label-layout = %layout%
|
label-layout = %layout%
|
||||||
|
|
||||||
blacklist-0 = num lock
|
blacklist-0 = num lock
|
||||||
blacklist-1 = scroll lock
|
blacklist-1 = scroll lock
|
||||||
blacklist-2= caps 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]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
interval = 600
|
interval = 600
|
||||||
date = %b %e
|
date = %d.%m.%Y
|
||||||
label = %date%
|
label = %date%
|
||||||
|
|
||||||
|
|
||||||
[module/time]
|
[module/time]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
interval = 0
|
|
||||||
time = %H:%M
|
time = %H:%M
|
||||||
label = %time%
|
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
|
|
||||||
|
|
|
||||||
|
|
@ -45,14 +45,20 @@ filetype <text/*> nvim
|
||||||
fileviewer <text/*> env -uCOLORTERM bat --color always --wrap never --pager never %c -p
|
fileviewer <text/*> env -uCOLORTERM bat --color always --wrap never --pager never %c -p
|
||||||
|
|
||||||
filextype *.pdf zathura %c %i &
|
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 <audio/*> mocp %c %i &
|
||||||
filetype <video/*> mpv %c %i &
|
filetype <video/*> mpv %c %i &
|
||||||
|
|
||||||
filextype <image/*> sxiv %c %i &
|
filextype <image/*> sxiv %c %i &
|
||||||
fileviewer <image/*>
|
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm
|
||||||
\ kitty icat --place=%pwx%ph@%pxx%py %c
|
\ ~/.config/vifm/vifmimg draw %px %py %pw %ph %c
|
||||||
\ %pc
|
\ %pc
|
||||||
\ kitty icat --clear
|
\ ~/.config/vifm/vifmimg clear
|
||||||
|
|
||||||
filextype *.py nvim %c %i &
|
filextype *.py nvim %c %i &
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,30 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
declare options=("i3
|
declare options=("i3
|
||||||
berry
|
|
||||||
qtile
|
qtile
|
||||||
|
berry
|
||||||
openbox
|
openbox
|
||||||
spectrwm
|
|
||||||
polybar
|
polybar
|
||||||
picom
|
picom
|
||||||
dunst
|
dunst
|
||||||
qutebrowser
|
qutebrowser
|
||||||
taskwarrior
|
taskwarrior
|
||||||
tmux
|
tmux
|
||||||
vim
|
alacritty
|
||||||
|
kitty
|
||||||
|
neovim
|
||||||
ranger
|
ranger
|
||||||
term
|
|
||||||
sh")
|
sh")
|
||||||
|
|
||||||
choice=$(echo -e "${options[@]}" | dmenu -p 'Edit config file' $@)
|
choice=$(echo -e "${options[@]}" | dmenu -p 'Edit config file' $@)
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
|
dunst) choice="$HOME/.config/dunst/dunstrc" ;;
|
||||||
|
neovim) choice="$HOME/.config/nvim/init.vim" ;;
|
||||||
|
taskwarior) choice="$HOME/.taskrc" ;;
|
||||||
|
picom) choice="$HOME/.config/picom.conf" ;;
|
||||||
|
kitty) choice="$HOME/.config/kitty/kitty.conf" ;;
|
||||||
|
alacritty) choice="$hoME/.config/alacritty.yml" ;;
|
||||||
|
polybar) choice="$HOME/.config/polybar/config" ;;
|
||||||
|
tmux) choice="$HOME/.tmux.conf" ;;
|
||||||
i3) choice="$HOME/.config/i3/config" ;;
|
i3) choice="$HOME/.config/i3/config" ;;
|
||||||
qtile)
|
qtile)
|
||||||
opt=$(echo -e "config.py\nautostart.sh"|dmenu -p 'Qtile' $@)
|
opt=$(echo -e "config.py\nautostart.sh"|dmenu -p 'Qtile' $@)
|
||||||
|
|
@ -42,15 +50,6 @@ case "$choice" in
|
||||||
"reload") openbox --reconfigure && pkill kitty ;;
|
"reload") openbox --reconfigure && pkill kitty ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
spectrwm)
|
|
||||||
why=$(echo -e "spectrwm.conf\nsectrwm-bar.sh"|dmenu -p Spectrwm $@)
|
|
||||||
case "$why" in
|
|
||||||
"spectrwm.conf") choice="$HOME/.spectrwm.conf" ;;
|
|
||||||
"spectrwm-bar.sh") choice="$HOME/.script/spectrwm-bar.sh" ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
picom) choice="$HOME/.config/picom.conf" ;;
|
|
||||||
polybar) choice="$HOME/.config/polybar/config" ;;
|
|
||||||
qutebrowser)
|
qutebrowser)
|
||||||
why=$(echo -e "config.py\nquickmarks"|dmenu -p 'Qutebrowser' $@)
|
why=$(echo -e "config.py\nquickmarks"|dmenu -p 'Qutebrowser' $@)
|
||||||
case "$why" in
|
case "$why" in
|
||||||
|
|
@ -65,22 +64,6 @@ case "$choice" in
|
||||||
"rifle.conf") choice="$HOME/.config/ranger/rifle.conf" ;;
|
"rifle.conf") choice="$HOME/.config/ranger/rifle.conf" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
vim)
|
|
||||||
why=$(echo -e "nvim\nvim"|dmenu -p 'Vim' $@)
|
|
||||||
case "$why" in
|
|
||||||
vim) choice="$HOME/.vimrc" ;;
|
|
||||||
nvim) choice="$HOME/.config/nvim/init.vim" ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
tmux) choice="$HOME/.tmux.conf" ;;
|
|
||||||
term)
|
|
||||||
why=$(echo -e "kitty\nalacritty"|dmenu -p Term $@)
|
|
||||||
case "$why" in
|
|
||||||
kitty) choice="$HOME/.config/kitty/kitty.conf" ;;
|
|
||||||
alacritty) choice="$hoME/.config/alacritty/alacritty.yml" ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
dunst) choice="$HOME/.config/dunst/dunstrc" ;;
|
|
||||||
sh)
|
sh)
|
||||||
why=$(echo -e "zsh\nfish\nbash"|dmenu -p "Shell" $@)
|
why=$(echo -e "zsh\nfish\nbash"|dmenu -p "Shell" $@)
|
||||||
case "$why" in
|
case "$why" in
|
||||||
|
|
@ -89,7 +72,6 @@ case "$choice" in
|
||||||
bash) choice="$hoME/.bashrc"
|
bash) choice="$hoME/.bashrc"
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
taskwarior) choice="$HOME/.taskrc" ;;
|
|
||||||
*) exit 1 ;;
|
*) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
kitty -e nvim "$choice"
|
alacritty -e nvim "$choice"
|
||||||
|
|
|
||||||
170
spectrwm.conf
170
spectrwm.conf
|
|
@ -1,170 +0,0 @@
|
||||||
modkey = Mod4
|
|
||||||
|
|
||||||
# Autostart
|
|
||||||
autorun = ws[1]:setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
|
|
||||||
autorun = ws[1]:nitrogen --restore
|
|
||||||
autorun = ws[1]:picom -b
|
|
||||||
|
|
||||||
# Program
|
|
||||||
program[term] = kitty
|
|
||||||
program[browser] = firefox
|
|
||||||
program[dmenu] = dmenu_run -h 18 -p Run
|
|
||||||
program[menu] = j4-dmenu-desktop --dmenu="dmenu -h 18 -p Run"
|
|
||||||
program[edit-config] = ~/.script/dmenu/dmenu-config-edit.sh -h 18
|
|
||||||
program[power-menu] = ~/.script/dmenu/dmenu-power.sh -h 18
|
|
||||||
program[passmenu] = passmenu -h 18 -p Password
|
|
||||||
program[filemanager] = pcmanfm
|
|
||||||
program[codeeditor] = gnvim
|
|
||||||
|
|
||||||
# User keybindings
|
|
||||||
bind[term] = MOD+Return
|
|
||||||
bind[menu] = MOD+Shift+Return
|
|
||||||
bind[dmenu] = MOD+Shift+apostrophe
|
|
||||||
bind[browser] = MOD+F2
|
|
||||||
bind[codeeditor] = MOD+F3
|
|
||||||
bind[filemanager] = MOD+F4
|
|
||||||
bind[edit-config] = MOD+Control+U
|
|
||||||
bind[passmenu] = MOD+Control+i
|
|
||||||
bind[power-menu] = MOD+Escape
|
|
||||||
|
|
||||||
|
|
||||||
# Volume keys
|
|
||||||
program[volumeplus] = pulseaudio-ctl up
|
|
||||||
program[volumeminu] = pulseaudio-ctl down
|
|
||||||
program[volumemute] = pulseaudio-ctl mute
|
|
||||||
bind[volumeplus] = MOD+equal
|
|
||||||
bind[volumeminu] = MOD+minus
|
|
||||||
bind[volumemute] = MOD+Shift+minus
|
|
||||||
|
|
||||||
# Workspace
|
|
||||||
workspace_limit = 9
|
|
||||||
focus_mode = follow
|
|
||||||
focus_close = last
|
|
||||||
focus_close_wrap = 1
|
|
||||||
focus_default = first
|
|
||||||
spawn_position = next
|
|
||||||
workspace_clamp = 0
|
|
||||||
warp_focus = 1
|
|
||||||
warp_pointer = 1
|
|
||||||
|
|
||||||
name = ws[1]:term
|
|
||||||
name = ws[2]:www
|
|
||||||
name = ws[3]:dev
|
|
||||||
name = ws[4]:sys
|
|
||||||
name = ws[5]:doc
|
|
||||||
name = ws[6]:chat
|
|
||||||
name = ws[7]:pass
|
|
||||||
name = ws[8]:mus
|
|
||||||
name = ws[9]:flo
|
|
||||||
|
|
||||||
# Window Decoration
|
|
||||||
border_width = 2
|
|
||||||
color_focus = rgb:00/8D/CD
|
|
||||||
color_focus_maximized = rgb:00/8D/CD
|
|
||||||
color_unfocus = rgb:CE/D4/DA
|
|
||||||
color_unfocus_maximized = rgb:CE/D4/DA
|
|
||||||
region_padding = 0
|
|
||||||
tile_gap = 0
|
|
||||||
|
|
||||||
# Bar Settings
|
|
||||||
bar_action = ~/.script/spectrwm-bar.sh
|
|
||||||
bar_delay = 0
|
|
||||||
bar_action_expand = 1
|
|
||||||
bar_enabled = 1
|
|
||||||
bar_border_width = 0
|
|
||||||
bar_border[1] = rgb:28/2A/36
|
|
||||||
bar_border_unfocus[1] = rgb:CE/D4/DA
|
|
||||||
bar_color[1] = rgb:26/2A/2B
|
|
||||||
bar_color_selected[1] = rgb:00/80/80
|
|
||||||
bar_font_color[1] = rgb:FF/FF/FF, rgb:CE/D4/DA, rgb:C6/78/DD, rgb:FF/6C/6B, rgb:EC/BE/7B, rgb:51/AF/EF
|
|
||||||
bar_font_color_selected = black
|
|
||||||
bar_font = Jatbrains Mono:size=12, FontAwesome
|
|
||||||
bar_font_pua = FontAwesome
|
|
||||||
bar_format = +|L+1<+I +D +@fg=1;+W +|R+A+1<+@fg=5; %d.%m.%y %R
|
|
||||||
workspace_indicator = listactive,markcurrent
|
|
||||||
bar_justify = center
|
|
||||||
stack_enabled = 1
|
|
||||||
iconic_enabled = 1
|
|
||||||
window_class_enabled = 1
|
|
||||||
window_instance_enabled = 1
|
|
||||||
window_name_enabled = 1
|
|
||||||
verbose_layout = 1
|
|
||||||
urgent_enabled = 1
|
|
||||||
|
|
||||||
# Window keys
|
|
||||||
bind[width_grow] = MOD+Control+l
|
|
||||||
bind[width_shrink] = MOD+Control+h
|
|
||||||
bind[height_grow] = MOD+Control+j
|
|
||||||
bind[height_shrink] = MOD+Control+k
|
|
||||||
bind[master_grow] = MOD+Control+l
|
|
||||||
bind[master_shrink] = MOD+Control+h
|
|
||||||
#bind[swap_next] = MOD+Shift+j
|
|
||||||
#bind[swap_prev] = MOD+Shift+k
|
|
||||||
|
|
||||||
# WM keys
|
|
||||||
bind[wind_kill] = MOD+q
|
|
||||||
bind[restart] = MOD+Control+r
|
|
||||||
bind[cycle_layout] = MOD+space
|
|
||||||
bind[float_toggle] = MOD+t
|
|
||||||
bind[focus_main] = MOD+m
|
|
||||||
bind[focus_next] = MOD+j
|
|
||||||
bind[focus_next] = MOD+Tab
|
|
||||||
bind[focus_prev] = MOD+k
|
|
||||||
bind[focus_urgent] = MOD+u
|
|
||||||
bind[iconify] = MOD+w
|
|
||||||
bind[initscr] = MOD+Shift+i
|
|
||||||
bind[master_add] = MOD+Shift+comma
|
|
||||||
bind[master_del] = MOD+Shift+period
|
|
||||||
bind[ws_1] = MOD+1
|
|
||||||
bind[ws_2] = MOD+2
|
|
||||||
bind[ws_3] = MOD+3
|
|
||||||
bind[ws_4] = MOD+4
|
|
||||||
bind[ws_5] = MOD+5
|
|
||||||
bind[ws_6] = MOD+6
|
|
||||||
bind[ws_7] = MOD+7
|
|
||||||
bind[ws_8] = MOD+8
|
|
||||||
bind[ws_9] = MOD+9
|
|
||||||
bind[mvws_1] = MOD+Shift+1
|
|
||||||
bind[mvws_2] = MOD+Shift+2
|
|
||||||
bind[mvws_3] = MOD+Shift+3
|
|
||||||
bind[mvws_4] = MOD+Shift+4
|
|
||||||
bind[mvws_5] = MOD+Shift+5
|
|
||||||
bind[mvws_6] = MOD+Shift+6
|
|
||||||
bind[mvws_7] = MOD+Shift+7
|
|
||||||
bind[mvws_8] = MOD+Shift+8
|
|
||||||
bind[mvws_9] = MOD+Shift+9
|
|
||||||
|
|
||||||
# Unbind
|
|
||||||
bind[] = MOD+x
|
|
||||||
bind[] = MOD+p
|
|
||||||
bind[] = MOD+w
|
|
||||||
bind[] = MOD+Down
|
|
||||||
bind[] = MOD+Left
|
|
||||||
bind[] = MOD+Right
|
|
||||||
bind[] = MOD+Up
|
|
||||||
bind[] = MOD+Shift+Right
|
|
||||||
bind[] = MOD+Shift+Left
|
|
||||||
bind[] = MOD+Shift+Down
|
|
||||||
bind[] = MOD+Shift+Up
|
|
||||||
bind[] = MOD+v
|
|
||||||
bind[] = MOD+Shift+v
|
|
||||||
bind[] = MOD+Shift+w
|
|
||||||
bind[] = MOD+Shift+backslash
|
|
||||||
bind[] = MOD+s
|
|
||||||
bind[] = MOD+Shift+s
|
|
||||||
bind[] = MOD+f
|
|
||||||
bind[] = MOD+Shift+period
|
|
||||||
bind[] = MOD+Shift+End
|
|
||||||
bind[] = MOD+Shift+Down
|
|
||||||
bind[] = MOD+Shift+Next
|
|
||||||
bind[] = MOD+Shift+Left
|
|
||||||
bind[] = MOD+Shift+Begin
|
|
||||||
bind[] = MOD+Shift+Right
|
|
||||||
bind[] = MOD+Shift+Home
|
|
||||||
bind[] = MOD+Shift+Up
|
|
||||||
bind[] = MOD+Shift+Prior
|
|
||||||
bind[] = MOD+Shift+j
|
|
||||||
bind[] = MOD+Shift+l
|
|
||||||
bind[] = MOD+Shift+h
|
|
||||||
bind[] = MOD+Shift+k
|
|
||||||
bind[] = MOD+e
|
|
||||||
9
zshrc
9
zshrc
|
|
@ -17,13 +17,14 @@ ZSH_THEME="cyan-simple" # Set theme
|
||||||
export UPDATE_ZSH_DAYS=7 # Change how often to auto-update.
|
export UPDATE_ZSH_DAYS=7 # Change how often to auto-update.
|
||||||
export LANG=en_US.UTF-8 # Set locale
|
export LANG=en_US.UTF-8 # Set locale
|
||||||
|
|
||||||
plugins=(pip python pass golang sudo heroku git taskwarrior encode64)
|
plugins=(pip python golang pass sudo heroku git taskwarrior encode64)
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
|
||||||
### Variables ###
|
### Variables ###
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
export VISUAL="nvim"
|
export VISUAL="nvim"
|
||||||
|
export GOPATH="$HOME/.go"
|
||||||
|
|
||||||
### Function ###
|
### Function ###
|
||||||
function bgcolor {
|
function bgcolor {
|
||||||
|
|
@ -34,15 +35,20 @@ function bgcolor {
|
||||||
### Aliases ###
|
### Aliases ###
|
||||||
alias cls="clear"
|
alias cls="clear"
|
||||||
alias :q="exit"
|
alias :q="exit"
|
||||||
|
alias :q!="exit"
|
||||||
alias q="exit"
|
alias q="exit"
|
||||||
alias :qw="exit"
|
alias :qw="exit"
|
||||||
alias tmux="tmux -2"
|
alias tmux="tmux -2"
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
alias mkdir="mkdir -p"
|
alias mkdir="mkdir -p"
|
||||||
|
alias mkd="mkdir"
|
||||||
alias sl="ls"
|
alias sl="ls"
|
||||||
alias cp="cp -r"
|
alias cp="cp -r"
|
||||||
alias du="du -sh"
|
alias du="du -sh"
|
||||||
alias df="df -h"
|
alias df="df -h"
|
||||||
|
alias lns="ln -s"
|
||||||
|
alias uln="unlink"
|
||||||
|
alias ipython="ipython --no-banner"
|
||||||
alias icat="kitty +kitten icat"
|
alias icat="kitty +kitten icat"
|
||||||
alias ..="cd .."
|
alias ..="cd .."
|
||||||
alias ...="cd ../.."
|
alias ...="cd ../.."
|
||||||
|
|
@ -50,5 +56,4 @@ alias .3="cd ../../.."
|
||||||
alias .4="cd ../../../.."
|
alias .4="cd ../../../.."
|
||||||
alias .5="cd ../../../../.."
|
alias .5="cd ../../../../.."
|
||||||
alias .6="cd ../../../../../.."
|
alias .6="cd ../../../../../.."
|
||||||
|
|
||||||
eval $(thefuck --alias)
|
eval $(thefuck --alias)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue