├── .profile ├── .local ├── share │ └── themes │ │ └── Adwaita-xps13 │ │ └── gnome-shell │ │ └── gnome-shell.css └── bin │ └── spotify ├── .config ├── mpv │ └── mpv.conf ├── nvim │ └── init.vim └── ls++ │ └── ls++.conf └── .zshrc /.profile: -------------------------------------------------------------------------------- 1 | export PATH=$HOME/.local/bin:$(ruby -rubygems -e "puts Gem.user_dir")/bin:$PATH 2 | export DIFFPROG=meld 3 | export PAGER=vimpager 4 | export WINEDEBUG=-all 5 | export VISUAL=vim 6 | export SWT_GTK3=0 7 | -------------------------------------------------------------------------------- /.local/share/themes/Adwaita-xps13/gnome-shell/gnome-shell.css: -------------------------------------------------------------------------------- 1 | stage { 2 | /* font-family: "Fira Sans"; */ 3 | font-size: 10pt; 4 | } 5 | 6 | .notification-banner { 7 | font-size: 10pt; 8 | } 9 | 10 | .system-status-icon { 11 | icon-size: 16px; 12 | } 13 | 14 | .popup-menu-icon { 15 | icon-size: 16px; 16 | } 17 | -------------------------------------------------------------------------------- /.config/mpv/mpv.conf: -------------------------------------------------------------------------------- 1 | # _ __ ___ _ ____ __ 2 | # | '_ ` _ \| '_ \ \ / / 3 | # | | | | | | |_) \ V / 4 | # |_| |_| |_| .__/ \_/ 5 | # |_| 6 | 7 | # Enable hardware decoding 8 | hwdec=vaapi 9 | 10 | # Set subtitle encoding for non-utf8 files 11 | sub-codepage=cp1250 12 | 13 | # Set default window size to FHD 14 | geometry=1920x1080 15 | 16 | # vim: set ft=mplayerconf: 17 | -------------------------------------------------------------------------------- /.local/bin/spotify: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | export PULSE_PROP="module-stream-restore.id=spotify" 4 | 5 | # DPI=$(xdpyinfo | grep resolution | cut -d" " -f7 | cut -d"x" -f1) 6 | # if (( $DPI > 150 )); then 7 | # SCALE=2 8 | # else 9 | # SCALE=1 10 | # fi 11 | SCALE=2 12 | 13 | LD_PRELOAD="libcurl-openssl-1.0.so /usr/lib/openssl-1.0-compat/libssl.so /usr/lib/openssl-1.0-compat/libcrypto.so" exec /usr/share/spotify/spotify --force-device-scale-factor=$SCALE "$@" 14 | -------------------------------------------------------------------------------- /.zshrc: -------------------------------------------------------------------------------- 1 | # _ 2 | # _______| |__ 3 | # |_ / __| '_ \ 4 | # / /\__ \ | | | 5 | # /___|___/_| |_| 6 | 7 | # Antigen 8 | source ~/Git/antigen/antigen.zsh 9 | antigen use oh-my-zsh 10 | 11 | antigen bundle mafredri/zsh-async 12 | antigen bundle sindresorhus/pure 13 | antigen bundle zsh-users/zsh-syntax-highlighting 14 | antigen bundle virtualenvwrapper 15 | antigen bundle sudo 16 | antigen bundle Tarrasch/zsh-autoenv 17 | antigen bundle zsh-users/zsh-autosuggestions 18 | 19 | antigen apply 20 | 21 | # Aliases 22 | alias :q="exit" 23 | alias sub="subberthehut -l cze -s" 24 | alias ls="/usr/bin/vendor_perl/ls++" 25 | alias l="ls -la" 26 | alias u="yaourt -Syu --aur" 27 | 28 | # Gitignore.io 29 | function gi() { curl -L -s https://www.gitignore.io/api/$@ } 30 | 31 | source ~/.profile 32 | workon_cwd 33 | 34 | # Enable fzf keybindings 35 | source /etc/profile.d/fzf.zsh 36 | 37 | [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh 38 | -------------------------------------------------------------------------------- /.config/nvim/init.vim: -------------------------------------------------------------------------------- 1 | " _ 2 | " _ __ ___ _____ _(_)_ __ ___ 3 | " | '_ \ / _ \/ _ \ \ / / | '_ ` _ \ 4 | " | | | | __/ (_) \ V /| | | | | | | 5 | " |_| |_|\___|\___/ \_/ |_|_| |_| |_| 6 | 7 | scriptencoding utf-8 8 | 9 | " Set up Plug 10 | if empty(glob('~/.local/share/nvim/site/autoload/plug.vim')) 11 | execute '!curl -fLo ~/.local/share/nvim/site/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim' 12 | endif 13 | 14 | call plug#begin('~/.local/share/nvim/site/plugged') 15 | 16 | Plug 'morhetz/gruvbox' 17 | Plug 'vim-airline/vim-airline' 18 | Plug 'lilydjwg/colorizer' 19 | Plug 'vim-scripts/CursorLineCurrentWindow' 20 | Plug 'ctrlpvim/ctrlp.vim' 21 | Plug 'ntpeters/vim-better-whitespace' 22 | Plug 's3rvac/AutoFenc' 23 | Plug 'tpope/vim-fugitive' 24 | Plug 'exvim/ex-autocomplpop' 25 | Plug 'tpope/vim-commentary' 26 | Plug 'ConradIrwin/vim-bracketed-paste' 27 | Plug 'chrisbra/SudoEdit.vim' 28 | Plug 'easymotion/vim-easymotion' 29 | Plug 'lervag/vimtex' 30 | Plug 'w0rp/ale' 31 | Plug 'ryanoasis/vim-devicons' 32 | Plug 'mhinz/vim-startify' 33 | Plug 'tyrannicaltoucan/vim-quantum' 34 | Plug 'udalov/kotlin-vim' 35 | Plug 'luochen1990/rainbow' 36 | 37 | call plug#end() 38 | 39 | " Fix missing python module errors when running in virtualenv 40 | let g:python3_host_prog = '/usr/bin/python' 41 | 42 | " Enable mouse 43 | set mouse=a 44 | 45 | " Enable true colors 46 | set termguicolors 47 | 48 | " Set theme 49 | syntax on 50 | 51 | set background=dark 52 | let g:gruvbox_contrast_dark = 'medium' 53 | colorscheme gruvbox 54 | 55 | let g:airline_theme = 'gruvbox' 56 | let g:airline_left_sep = '' 57 | let g:airline_left_alt_sep = '' 58 | let g:airline_right_sep = '' 59 | let g:airline_right_alt_sep = '' 60 | let g:airline_powerline_fonts = 1 61 | 62 | " Enable tabline 63 | let g:airline#extensions#tabline#enabled = 1 64 | let g:airline#extensions#tabline#buffer_min_count = 2 65 | 66 | " Highlight current line 67 | set cursorline 68 | 69 | " Display line numbers 70 | set number 71 | 72 | " Do not show current mode on the last line 73 | set noshowmode 74 | 75 | " Disable timeout on escape 76 | set ttimeoutlen=10 77 | 78 | " Enable smart wrap 79 | set wrap 80 | set linebreak 81 | set breakindent 82 | 83 | " Expand tabs as n spaces 84 | set expandtab 85 | set tabstop=2 86 | set shiftwidth=2 87 | set softtabstop=2 88 | 89 | " Use X clipboard 90 | set clipboard=unnamedplus 91 | 92 | " Faster buffer manipulation 93 | nnoremap :bn:echo 94 | nnoremap :bp:echo 95 | nnoremap :bd:echo 96 | 97 | " Hide current buffer when switching to another (to keep undo history) 98 | set hidden 99 | 100 | " Enable smartcase searching 101 | set ignorecase 102 | set smartcase 103 | 104 | " Highlight search matches 105 | set hlsearch 106 | 107 | " Enable incremental search 108 | set incsearch 109 | 110 | " Space to turn off highlighting 111 | nnoremap :nohlsearch:echo 112 | 113 | " Save with C-s 114 | map :w 115 | 116 | " Treat overflowing lines as having line breaks 117 | map j gj 118 | map k gk 119 | map gj 120 | map gk 121 | 122 | set showbreak=↪\ 123 | set listchars=tab:→\ ,nbsp:␣,trail:•,extends:⟩,precedes:⟨ 124 | set list 125 | 126 | " The Silver Searcher 127 | if executable('ag') 128 | " Use ag over grep 129 | set grepprg=ag\ --nogroup\ --nocolor 130 | endif 131 | 132 | " BetterWhitespace: 133 | " Strip trailing whitespaces on save 134 | augroup whitespace 135 | autocmd BufEnter * EnableStripWhitespaceOnSave 136 | augroup END 137 | 138 | " AutoFenc: 139 | " Set language for encoding autodetection 140 | let g:autofenc_ext_prog_args = '-L czech -i' 141 | 142 | " CtrlP: 143 | if executable('ag') 144 | " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore 145 | let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' 146 | 147 | " ag is fast enough that CtrlP doesn't need to cache 148 | let g:ctrlp_use_caching = 0 149 | else 150 | " Hide .gitignore-d files 151 | let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f'] 152 | endif 153 | 154 | " EasyMotion: 155 | " Disable default mappings 156 | let g:EasyMotion_do_mapping = 0 157 | 158 | " Jump with `s{char}{label}` 159 | nmap s (easymotion-overwin-f) 160 | 161 | " Turn on case insensitive feature 162 | let g:EasyMotion_smartcase = 1 163 | 164 | " Ale: 165 | let g:ale_sign_error = '' 166 | let g:ale_sign_warning = '' 167 | nmap (ale_previous_wrap) 168 | nmap (ale_previous_wrap) 169 | nmap (ale_next_wrap) 170 | nmap (ale_next_wrap) 171 | 172 | " Devicons: 173 | let g:webdevicons_enable_airline_statusline = 0 174 | let g:webdevicons_enable_airline_tabline = 0 175 | 176 | " Rainbow: 177 | let g:rainbow_active = 1 178 | -------------------------------------------------------------------------------- /.config/ls++/ls++.conf: -------------------------------------------------------------------------------- 1 | # ls++ configuration file 2 | # location: $XDG_CONFIG_HOME/ls++/ls++.conf 3 | 4 | use vars qw(@ignores 5 | @d 6 | @c 7 | $colorscheme 8 | %ls_colors 9 | $symlink_delim 10 | $symlink_color 11 | ); 12 | 13 | $colorscheme = 'gruvbox'; 14 | 15 | @ignores = ( 16 | '\.un~$', 17 | '\.sw[o-z]$', 18 | ); 19 | 20 | @d = qw(▕ - │ ▏); 21 | 22 | #$d[0] = '├'; 23 | #$d[1] = ' '; 24 | #$d[2] = '▕▏'; 25 | #$d[3] = '┤'; 26 | 27 | $symlink_delim = '=>'; 28 | $symlink_color = 1; 29 | 30 | @c = (0 .. 16); 31 | #); 32 | 33 | # extended colors 34 | if($colorscheme eq '') { 35 | $c[0] = 208; 36 | $c[1] = 197; 37 | $c[2] = 190; 38 | $c[3] = 196; 39 | $c[4] = 242; 40 | $c[5] = 209; 41 | $c[6] = 185; 42 | $c[7] = 215; 43 | $c[8] = 032; 44 | $c[9] = 061; 45 | $c[10] = 142; 46 | $c[11] = 197; 47 | $c[12] = 106; 48 | $c[13] = 060; 49 | $c[14] = 236; 50 | $c[15] = 215; 51 | } 52 | 53 | elsif($colorscheme eq 'greyscale') { 54 | $c[0] = 252; 55 | $c[1] = 251; 56 | $c[2] = 250; 57 | $c[3] = 249; 58 | $c[4] = 239; 59 | $c[5] = 244; 60 | $c[6] = 240; 61 | $c[7] = 242; 62 | $c[8] = 244; 63 | $c[9] = 244; 64 | $c[10] = 243; 65 | $c[11] = 241; 66 | $c[12] = 240; 67 | $c[13] = 239; 68 | $c[14] = 236; 69 | $c[15] = 242; 70 | } 71 | 72 | elsif($colorscheme eq 'early') { 73 | $c[0] = 233; 74 | $c[1] = 245; 75 | $c[2] = 250; 76 | $c[3] = 201; 77 | $c[4] = 239; 78 | $c[5] = 209; 79 | $c[6] = 185; 80 | $c[7] = 216; 81 | $c[8] = 244; 82 | $c[9] = 254; 83 | $c[10] = 243; 84 | $c[11] = 241; 85 | $c[12] = 240; 86 | $c[13] = 239; 87 | $c[14] = 237; 88 | $c[15] = 220; 89 | } 90 | 91 | elsif($colorscheme eq 'trapd00r') { 92 | $c[0] = 237; 93 | $c[1] = 131; 94 | $c[2] = 107; # K 95 | $c[3] = 075; # G, sec 96 | $c[4] = 240; # day 97 | $c[5] = 209; # +x 98 | $c[6] = 185; # +r 99 | $c[7] = 216; # +w, M 100 | $c[8] = 220; 101 | $c[9] = 208; # hour 102 | $c[10] = 243; 103 | $c[11] = 161; 104 | $c[12] = 240; 105 | $c[13] = 025; 106 | $c[14] = 248; # Bytes, month 107 | $c[15] = 196; # Min 108 | } 109 | 110 | elsif($colorscheme eq 'gruvbox') { 111 | $c[0] = 237; 112 | $c[1] = 1; 113 | $c[2] = 2; # K 114 | $c[3] = 9; # G, sec 115 | $c[4] = 12; # day 116 | $c[5] = 1; # +x 117 | $c[6] = 2; # +r 118 | $c[7] = 3; # +w, M 119 | $c[8] = 220; 120 | $c[9] = 10; # hour 121 | $c[10] = 243; 122 | $c[11] = 161; 123 | $c[12] = 240; 124 | $c[13] = 025; 125 | $c[14] = 8; # Bytes, month 126 | $c[15] = 11; # Min 127 | } 128 | 129 | %ls_colors = ( 130 | 'README$' => $c[8], 131 | 'Makefile$' => $c[15], 132 | '(=:.+)?\..*rc' => $c[3], 133 | ); 134 | 135 | 136 | =pod 137 | 138 | =head1 NAME 139 | 140 | ls++.conf - ls++ configuration file 141 | 142 | =head1 DESCRIPTION 143 | 144 | ls++.conf is the configuration file for ls++(1). ls++ first searches for it at 145 | ~/.config/ls++/ls++.conf then at ~/.ls++.conf then at ./ls++.conf and finally at 146 | /etc/ls++.conf. 147 | 148 | Lines beginning with a '#' character are comments. All other non-empty lines 149 | are live Perl code. This gives a lot of power to the end user, but it also 150 | allows for fuckups. 151 | 152 | Please don't fuckup. 153 | 154 | =head1 ENVIRONMENT 155 | 156 | =over 8 157 | 158 | =item @d 159 | 160 | Array containting the characters to use for delimiting the columns. 161 | 162 | =item @c 163 | 164 | Array containing the colors to be used. 165 | 166 | =item $colorscheme 167 | 168 | Colorscheme to be used. 169 | 170 | =item %ls_colors 171 | 172 | A hash where its keys are patterns (possibly valid regular expressions) to be 173 | matched against the files. The values should be attributes or colors which will 174 | be added to the output. 175 | 176 | This does the same thing as LS_COLORS, except that you can match against the 177 | full filname, and not only the extension. Using LS_COLORS, you could never match 178 | README or Makefile for example. Those two are matched by default. 179 | 180 | The special value IGNORE will ignore all files matching the key pattern. 181 | 182 | =back 183 | 184 | =head1 COLORS 185 | 186 | The default colortable left here for reference (ANSI colors). 187 | 188 | 0 NULL black 189 | 1 NULL bright black 190 | 2 K red 191 | 3 G, sec bright red 192 | 4 day green 193 | 5 +x bright green 194 | 6 +r yellow 195 | 7 +w, M bright yellow 196 | 8 other blue 197 | 9 hour bright blue 198 | 10 magenta 199 | 11 +s bright magenta 200 | 12 cyan 201 | 13 link bright cyan 202 | 14 B, month, delim white 203 | 204 | 15 205 | 16 reset 206 | 17 bold 207 | 208 | =head1 AUTHOR 209 | 210 | Magnus Woldrich 211 | CPAN ID: WOLDRICH 212 | magnus@trapd00r.se 213 | http://japh.se 214 | 215 | =head1 REPORTING BUGS 216 | 217 | Report bugs and/or feature requests on L 218 | or to L 219 | 220 | =head1 COPYRIGHT 221 | 222 | Copyright (C) 2010 Magnus Woldrich. All right reserved. 223 | This program is free software; you can redistribute it and/or modify it under 224 | the same terms as Perl itself. 225 | 226 | =cut 227 | 228 | 229 | 230 | 1; 231 | # vim: set ft=perl ts=2 expandtab: 232 | --------------------------------------------------------------------------------