├── .Xresources
├── .config
├── dunst
│ └── dunstrc
├── neofetch
│ ├── arch_logo.txt
│ └── config.conf
├── nvim
│ ├── coc-settings.json
│ └── init.vim
├── ranger
│ ├── commands.py
│ ├── commands_full.py
│ ├── plugins
│ │ ├── __init__.py
│ │ ├── devicons.py
│ │ └── devicons_linemode.py
│ ├── rc.conf
│ ├── rifle.conf
│ └── scope.sh
├── spicetify
│ ├── Themes
│ │ └── Jellybeans
│ │ │ ├── color.ini
│ │ │ └── user.css
│ └── config.ini
└── zathura
│ └── zathurarc
├── .fonts
├── Font Awesome 5 Brands-Regular-400.otf
├── Font Awesome 5 Free-Regular-400.otf
├── Font Awesome 5 Free-Solid-900.otf
├── Hermit-Bold.otf
├── Hermit-BoldItalic.otf
├── Hermit-Light.otf
├── Hermit-LightItalic.otf
├── Hermit-Regular.otf
└── Hermit-RegularItalic.otf
├── .gitignore
├── .zshrc
├── README.md
├── diffs
├── dmenu.diff
├── dwm.diff
└── st.diff
├── dwm_screenshot.png
├── old_rice
├── .Xresources
├── .config
│ ├── bat
│ │ └── config
│ ├── dunst
│ │ └── dunstrc
│ ├── neofetch
│ │ └── config.conf
│ ├── pulseaudio-ctl
│ │ └── config
│ ├── ranger
│ │ ├── commands.py
│ │ ├── commands_full.py
│ │ ├── rc.conf
│ │ ├── rifle.conf
│ │ └── scope.sh
│ ├── termite
│ │ └── config
│ ├── vis
│ │ ├── colors
│ │ │ ├── dracula
│ │ │ ├── gruvbox
│ │ │ ├── material
│ │ │ └── rei
│ │ ├── config
│ │ └── vis.log
│ └── zathura
│ │ └── zathurarc
├── .gitignore
├── .vim
│ ├── .netrwhist
│ ├── .ycm_extra_conf.py
│ ├── autoload
│ │ └── pathogen.vim
│ ├── bundle
│ │ └── vim_modules.sh
│ ├── colors
│ │ ├── 2Bcolors.vim
│ │ ├── alabaster.vim
│ │ ├── codeschool.vim
│ │ ├── colibri.vim
│ │ ├── cosmic_latte.vim
│ │ ├── forgotten-dark.vim
│ │ ├── forgotten-light.vim
│ │ ├── ocean.vim
│ │ └── pink-moon.vim
│ └── vimty.vim
├── .vimrc
├── .xinitrc
├── .zshrc
├── README.md
├── autostart.sh
├── colors.h
├── compton.conf
├── dwm
│ ├── config.h
│ └── patches
│ │ ├── dwm-attachaside.diff
│ │ ├── dwm-autostart.diff
│ │ ├── dwm-centeredwindowname.diff
│ │ ├── dwm-cmdcustomize-20180504-3bd8466.diff
│ │ ├── dwm-cyclelayouts.diff
│ │ ├── dwm-fibonacci.diff
│ │ ├── dwm-focusurgent.diff
│ │ ├── dwm-gaplessgrid.diff
│ │ ├── dwm-rotatestack.diff
│ │ └── dwm-uselessgap.diff
├── guides
│ ├── ArchGuideEFI.md
│ ├── ArchGuideEFI.pdf
│ ├── LearnBash.sh
│ ├── LearnVim.txt
│ ├── c-hotkeys.pdf
│ ├── cli-cmds.jpg
│ ├── latexsheet.pdf
│ ├── learnc.c
│ ├── learnpython3.py
│ └── undergradmath.pdf
├── screenshot.png
├── scripts
│ ├── autostart.sh
│ ├── displaymenu.sh
│ ├── powermenu.sh
│ ├── screenshot.sh
│ └── volume
├── slock
│ └── config.h
└── slstatus
│ └── config.h
├── scripts
├── displaymenu.sh
├── powermenu.sh
├── screenshot.sh
├── status.sh
├── volumectl.sh
└── wallpaper.sh
├── suckless
├── autostart.sh
├── colors.h
├── dmenu
│ └── config.h
├── dwm
│ └── config.h
├── make_diffs.sh
├── slock
│ └── config.h
└── st
│ └── config.h
└── wallpaper.png
/.Xresources:
--------------------------------------------------------------------------------
1 | sxiv*Font: Hermit Regular 10px 14
2 |
3 | ! special
4 | *.foreground: #adadad
5 | *.background: #121212
6 | *.cursorColor: #adadad
7 |
8 | ! black
9 | *.color0: #1c1c1c
10 | *.color8: #3b3b3b
11 |
12 | ! red
13 | *.color1: #d75f5f
14 | *.color9: #ffb964
15 |
16 | ! green
17 | *.color2: #72a25a
18 | *.color10: #99ad6a
19 |
20 | ! yellow
21 | *.color3: #d8ad4c
22 | *.color11: #fad07a
23 |
24 | ! blue
25 | *.color4: #597bc5
26 | *.color12: #8197bf
27 |
28 | ! magenta
29 | *.color5: #8787af
30 | *.color13: #d7afff
31 |
32 | ! cyan
33 | *.color6: #4a8382
34 | *.color14: #8fbfdc
35 |
36 | ! white
37 | *.color7: #adadad
38 | *.color15: #e8e8de
39 |
40 |
41 | ! Black color that will not be affected by bold highlighting.
42 | *.color66: #000000
43 | *color66: #000000
44 |
45 |
--------------------------------------------------------------------------------
/.config/dunst/dunstrc:
--------------------------------------------------------------------------------
1 | [global]
2 | alignment = left
3 | allow_markup = yes
4 | bounce_freq = 0
5 | browser = /usr/bin/firefox --new-tab
6 | # dmenu = /usr/local/bin/dmenu -h 29 -fn "Hermit-Regular:size=12" -nb "#121212" -nf "#adadad" -sf "#121212" -sb "#adadad" -p dunst:
7 | dmenu = /usr/local/bin/dmenu -p dunst:
8 | follow = none
9 | font = Hermit Regular 12
10 | format = "%a: %s\n%b"
11 | icon_folders = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/:/usr/share/icons/Adwaita/16x16/apps/
12 | # geometry [{width}x{height}][+/-{x}+/-{y}]
13 | # geometry = "350-10+35"
14 | geometry = "300x5-7+35"
15 | history_length = 20
16 | horizontal_padding = 8
17 | idle_threshold = 120
18 | ignore_newline = no
19 | indicate_hidden = yes
20 | icons_show = left
21 | show_icons = no
22 | line_height = 0
23 | monitor = 0
24 | padding = 5
25 | separator_color = frame
26 | separator_height = 1
27 | show_age_threshold = 60
28 | show_indicators = yes
29 | shrink = no
30 | sort = yes
31 | startup_notification = false
32 | sticky_history = no
33 | transparency = 0
34 | word_wrap = no
35 |
36 | [frame]
37 | width = 2
38 | color = "#adadad"
39 |
40 | [shortcuts]
41 | close = mod4+x
42 | close_all = mod4+ctrl+x
43 | history = mod4+grave
44 | context = mod4+shift+period
45 |
46 | [urgency_low]
47 | background = "#121212"
48 | foreground = "#adadad"
49 | timeout = 8
50 |
51 | [urgency_normal]
52 | background = "#121212"
53 | foreground = "#adadad"
54 | timeout = 10
55 |
56 | [urgency_critical]
57 | background = "#d75f5f"
58 | foreground = "#121212"
59 | timeout = 13
60 |
--------------------------------------------------------------------------------
/.config/neofetch/arch_logo.txt:
--------------------------------------------------------------------------------
1 | ${C2}█
2 | ${C2}███
3 | ${C2}██ ██
4 | ${C2}██ ██
5 | ${C2}██ ██
6 | ${C2}██▄ ██
7 | ${C2}██ ▀ ██
8 | ${C2}██ ██
9 | ${C2}██ ██
10 | ${C2}██ █ ██
11 | ${C2}██ ▄███▄ ██
12 | ${C2}██ ██ ${C2}██ ▄▄ ██
13 | ${C2}██ ▄██ ${C2}██▄ ▀▀██
14 | ${C2}██ ▄█████ ${C2}█████▄ ██
15 | ${C2}██ ▄█████ ${C2}█████▄ ██
16 | ${C2}██ ${C2}██
17 |
--------------------------------------------------------------------------------
/.config/nvim/coc-settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "codeLens.enable": true,
3 | "diagnostic.errorSign": "",
4 | "diagnostic.warningSign": "",
5 | "diagnostic.infoSign": "",
6 | "diagnostic-languageserver.filetypes": {
7 | "sh": "shellcheck"
8 | },
9 | "eslint.enable": false,
10 | "eslint.filetypes": [
11 | "javascript",
12 | "javascriptreact",
13 | "typescript",
14 | "typescriptreact"
15 | ],
16 | "git.realtimeGutters": true,
17 | "suggest.noselect": true,
18 | "list.insertMappings": {
19 | "": "action:split",
20 | "": "action:vsplit"
21 | },
22 | "list.normalMappings": {
23 | "s": "action:split",
24 | "v": "action:vsplit"
25 | },
26 | "list.source.files.command": "fd",
27 | "list.source.files.args": ["--type", "f"],
28 | "rust.clippy_preference": "on",
29 | "tsserver.enableJavascript": true,
30 | "typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
31 | "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
32 | "typescript.preferences.quoteStyle": "double",
33 | "typescript.referencesCodeLens.enable": false,
34 | "git.enableGutters": false,
35 | "latex.build.onSave": true
36 | }
37 |
--------------------------------------------------------------------------------
/.config/nvim/init.vim:
--------------------------------------------------------------------------------
1 | "
2 | " ██
3 | " ░░
4 | " ███████ █████ ██████ ██ ██ ██ ██████████
5 | " ░░██░░░██ ██░░░██ ██░░░░██░██ ░██░██░░██░░██░░██
6 | " ░██ ░██░███████░██ ░██░░██ ░██ ░██ ░██ ░██ ░██
7 | " ░██ ░██░██░░░░ ░██ ░██ ░░████ ░██ ░██ ░██ ░██
8 | " ███ ░██░░██████░░██████ ░░██ ░██ ███ ░██ ░██
9 | " ░░░ ░░ ░░░░░░ ░░░░░░ ░░ ░░ ░░░ ░░ ░░
10 |
11 | call plug#begin('~/.vim/plugged')
12 |
13 | " Color Scheme
14 | Plug 'nanotech/jellybeans.vim'
15 | Plug 'ryanoasis/vim-devicons'
16 |
17 | " Autocomplete in neovim
18 | Plug 'neoclide/coc.nvim', {'branch': 'release'}
19 | " Plug 'ervandew/supertab'
20 |
21 | " Shows level of indentation
22 | Plug 'Yggdroot/indentLine'
23 |
24 | " Commenter for neovim
25 | Plug 'scrooloose/nerdcommenter'
26 |
27 | " File tree
28 | Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
29 |
30 | " Auto pair brackets or quotes
31 | Plug 'jiangmiao/auto-pairs'
32 |
33 | " Status bar for neovim
34 | Plug 'itchyny/lightline.vim'
35 |
36 | " Git status
37 | Plug 'airblade/vim-gitgutter'
38 |
39 | " Show rgb or hex colors in neovim
40 | Plug 'lilydjwg/colorizer', { 'for': [ 'css', 'cpp' ] }
41 |
42 | call plug#end()
43 |
44 | " For plugins to work (still not sure what it does)
45 | set nocompatible
46 |
47 | set history=500
48 |
49 | " Colorscheme
50 | set background=dark
51 | colorscheme jellybeans
52 | let g:jellybeans_use_term_italics = 1
53 | " set termguicolors
54 |
55 | filetype plugin on
56 | filetype indent on
57 | filetype on
58 | syntax on
59 |
60 | set autoread " Auto read changes to file outside vim
61 | set hidden " Hide unsave file to hidden buffers
62 | set nowrap " Don't wrap text
63 | set cursorline cursorcolumn " Highlight curr column and row of code
64 |
65 | set smartindent autoindent
66 | set tabstop=2 shiftwidth=2 expandtab
67 | " Show matching brackets when text indicator is over them
68 | set showmatch
69 | " How many tenths of a second to blink when matching brackets
70 | set mat=2
71 | set number " Show current line number
72 | set relativenumber " Show other line nums relative to curr
73 | set wildmenu " Command completion in enhanced mode
74 | " Ignore compiled files
75 | set wildignore=*.pyc,*.o,*.obj,*.svn,*.class,*.aux,*.fdb_latexmk,*.fls,*.gz
76 | set noshowcmd " Don't show the used command
77 |
78 | " For regular expressions turn magic on
79 | " set magic
80 |
81 | set foldcolumn=1 " Add a bit extra margin to the left
82 |
83 | set hlsearch " Highlight search word
84 | set incsearch " Search as you type
85 | set ignorecase " Ignore case while searching
86 | set smartcase " But not when there is a char in CAPS
87 |
88 | set ai " Auto indent
89 | set si " Smart indent
90 | set wrap " Wrap lines
91 |
92 | " Center vertically when going in insert
93 | autocmd InsertEnter * norm zz
94 |
95 | "Get backspace to work
96 | set backspace=indent,eol,start
97 |
98 | " Return to last edit position when opening files
99 | au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
100 |
101 | """"""""""""""""""""""""""""""
102 | " => Mapping
103 | """"""""""""""""""""""""""""""
104 | " Map leader key to space
105 | let mapleader=" "
106 | " Remap escape
107 | inoremap kj
108 | tnoremap kj
109 |
110 | " Replace
111 | nmap r :%s///g
112 | " Replace word under the cursor
113 | nmap R :%s///g
114 | " End search
115 | nnoremap ,, :noh
116 |
117 | " Fix indentation
118 | nmap i =i{
119 | " Add lines without exiting normal mode
120 | nmap ok
121 |
122 | " Go new next visual line (to tackle wraped text)
123 | nnoremap k gk
124 | nnoremap j gj
125 |
126 | " Toggle spell checking (EN US)
127 | map ss :setlocal spell! spelllang=en_us
128 |
129 | """"""""""""""""""""""""""""""
130 | " => Multiple files
131 | """"""""""""""""""""""""""""""
132 | set splitbelow splitright
133 |
134 | " Remap movement b/w splits
135 | " Normal mode:
136 | nnoremap
137 | nnoremap
138 | nnoremap
139 | nnoremap
140 |
141 | " Insert mode:
142 | inoremap
143 | inoremap
144 | inoremap
145 | inoremap
146 |
147 | " Terminal mode:
148 | tnoremap
149 | tnoremap
150 | tnoremap
151 | tnoremap
152 |
153 | " Resize the splits
154 | nnoremap :resize -3
155 | nnoremap :resize +3
156 | nnoremap :vertical resize +3
157 | nnoremap :vertical resize -3
158 |
159 | " Change splits from hori to vert and vice-versa
160 | map th tH
161 | map tk tK
162 |
163 | " Remove | (pipe) from the split bar
164 | set fillchars+=vert:\
165 |
166 | " Tabs
167 | " gt to go up, gT to go down, #gt to # tag
168 | nnoremap H gT
169 | nnoremap L gt
170 |
171 | """"""""""""""""""""""""""""""
172 | " => Status & tab (Lightline)
173 | """"""""""""""""""""""""""""""
174 | set laststatus=2 " Always show the status line
175 | set showtabline=2 " Always show the tabline
176 |
177 | " Dont show mode cause lightline is doing it already
178 | set noshowmode
179 |
180 | let g:lightline = {
181 | \ 'colorscheme': 'jellybeans',
182 | \ 'component_function': {
183 | \ 'filetype': 'MyFiletype',
184 | \ }
185 | \ }
186 |
187 | function! MyFiletype()
188 | return winwidth(0) > 70 ? (strlen(&filetype) ? &filetype . ' ' . WebDevIconsGetFileTypeSymbol() : 'no ft') : ''
189 | endfunction
190 |
191 | let g:lightline.separator = {
192 | \ 'left': '', 'right': ''
193 | \ }
194 | let g:lightline.subseparator = {
195 | \ 'left': '', 'right': ''
196 | \ }
197 |
198 | let g:lightline.component_expand = {
199 | \ 'coc_error' : 'LightlineCocErrors',
200 | \ 'coc_warning' : 'LightlineCocWarnings',
201 | \ 'coc_info' : 'LightlineCocInfos',
202 | \ 'coc_hint' : 'LightlineCocHints',
203 | \ 'coc_fix' : 'LightlineCocFixes'
204 | \ }
205 |
206 | let g:lightline.component_type = {
207 | \ 'coc_error' : 'error',
208 | \ 'coc_warning' : 'warning',
209 | \ 'coc_info' : 'tabsel',
210 | \ 'coc_hint' : 'middle',
211 | \ 'coc_fix' : 'middle',
212 | \ }
213 |
214 | function! s:lightline_coc_diagnostic(kind, sign) abort
215 | let info = get(b:, 'coc_diagnostic_info', 0)
216 | if empty(info) || get(info, a:kind, 0) == 0
217 | return ''
218 | endif
219 | try
220 | let s = g:coc_user_config['diagnostic'][a:sign . 'Sign']
221 | catch
222 | let s = ''
223 | endtry
224 | return printf('%s %d', s, info[a:kind])
225 | endfunction
226 |
227 | function! LightlineCocErrors() abort
228 | return s:lightline_coc_diagnostic('error', 'error')
229 | endfunction
230 |
231 | function! LightlineCocWarnings() abort
232 | return s:lightline_coc_diagnostic('warning', 'warning')
233 | endfunction
234 |
235 | function! LightlineCocInfos() abort
236 | return s:lightline_coc_diagnostic('information', 'info')
237 | endfunction
238 |
239 | function! LightlineCocHints() abort
240 | return s:lightline_coc_diagnostic('hints', 'hint')
241 | endfunction
242 | \ }
243 |
244 | autocmd User CocDiagnosticChange call lightline#update()
245 |
246 | let g:lightline.active = {
247 | \ 'left': [[ 'mode', 'paste' ], [ 'filename' ], [ 'readonly', 'modified' ]],
248 | \ 'right': [[ 'lineinfo' ], [ 'percent' ], [ 'coc_error', 'coc_warning', 'coc_hint', 'coc_info' ]]
249 | \ }
250 |
251 | let g:lightline.tabline = {
252 | \ 'left': [ [ 'tabs' ] ],
253 | \ 'right': [ [ 'filetype' ] ] }
254 |
255 | let g:indentLine_setConceal = 0
256 |
257 | """"""""""""""""""""""""""""""
258 | " => NerdTree
259 | """"""""""""""""""""""""""""""
260 | " Start NERDTree at startup
261 | " autocmd vimenter * NERDTree
262 | map :NERDTreeToggle
263 | let NERDTreeRespectWildIgnore=1
264 |
265 | """"""""""""""""""""""""""""""
266 | " => Git-gutter
267 | """"""""""""""""""""""""""""""
268 | nmap \g :GitGutterLineHighlightsToggle
269 | " let g:gitgutter_highlight_linenrs = 1
270 |
271 | """"""""""""""""""""""""""""""
272 | " => NerdCommenter
273 | """"""""""""""""""""""""""""""
274 | let g:NERDSpaceDelims = 1
275 | let g:NERDCompactSexyComs = 1
276 | let g:NERDDefaultAlign = 'left'
277 | let g:NERDCommentEmptyLines = 1
278 | let g:NERDTrimTrailingWhitespace = 1
279 | let g:NERDToggleCheckAllLines = 1
280 |
281 | """"""""""""""""""""""""""""""
282 | " Autocompletion
283 | """""""""""""""""""""""""""""""
284 | let g:SuperTabDefaultCompletionType = ""
285 | let g:SuperTabContextDefaultCompletionType = ""
286 |
287 | nmap [g (coc-diagnostic-prev)
288 | nmap ]g (coc-diagnostic-next)
289 |
290 | " GoTo code navigation.
291 | nmap gd (coc-definition)
292 | nmap gy (coc-type-definition)
293 | nmap gi (coc-implementation)
294 | nmap gr (coc-references)
295 |
296 | """"""""""""""""""""""""""""""
297 | " => Run/Compile
298 | """"""""""""""""""""""""""""""
299 | autocmd FileType python map \sr :w!:!python %
300 | " TODO Fix error of building when c, cpp open in same session
301 | autocmd FileType c map \sb :w!:!make %:r
302 | autocmd FileType cpp map \sb :w!:!g++ % -o %:r
303 | autocmd FileType c,cpp map \mb :w!:!make
304 | autocmd FileType c,cpp map \sr :w!:!./%:r
305 | autocmd FileType go map \sb :w!:!go build
306 | autocmd FileType go map \sr :w!:!go run main.go
307 |
308 |
--------------------------------------------------------------------------------
/.config/ranger/commands.py:
--------------------------------------------------------------------------------
1 | # This is a sample commands.py. You can add your own commands here.
2 | #
3 | # Please refer to commands_full.py for all the default commands and a complete
4 | # documentation. Do NOT add them all here, or you may end up with defunct
5 | # commands when upgrading ranger.
6 |
7 | # A simple command for demonstration purposes follows.
8 | # -----------------------------------------------------------------------------
9 |
10 | from __future__ import (absolute_import, division, print_function)
11 |
12 | # You can import any python module as needed.
13 | import os
14 |
15 | # You always need to import ranger.api.commands here to get the Command class:
16 | from ranger.api.commands import Command
17 |
18 |
19 | # Any class that is a subclass of "Command" will be integrated into ranger as a
20 | # command. Try typing ":my_edit" in ranger!
21 | class my_edit(Command):
22 | # The so-called doc-string of the class will be visible in the built-in
23 | # help that is accessible by typing "?c" inside ranger.
24 | """:my_edit
25 |
26 | A sample command for demonstration purposes that opens a file in an editor.
27 | """
28 |
29 | # The execute method is called when you run this command in ranger.
30 | def execute(self):
31 | # self.arg(1) is the first (space-separated) argument to the function.
32 | # This way you can write ":my_edit somefilename".
33 | if self.arg(1):
34 | # self.rest(1) contains self.arg(1) and everything that follows
35 | target_filename = self.rest(1)
36 | else:
37 | # self.fm is a ranger.core.filemanager.FileManager object and gives
38 | # you access to internals of ranger.
39 | # self.fm.thisfile is a ranger.container.file.File object and is a
40 | # reference to the currently selected file.
41 | target_filename = self.fm.thisfile.path
42 |
43 | # This is a generic function to print text in ranger.
44 | self.fm.notify("Let's edit the file " + target_filename + "!")
45 |
46 | # Using bad=True in fm.notify allows you to print error messages:
47 | if not os.path.exists(target_filename):
48 | self.fm.notify("The given file does not exist!", bad=True)
49 | return
50 |
51 | # This executes a function from ranger.core.acitons, a module with a
52 | # variety of subroutines that can help you construct commands.
53 | # Check out the source, or run "pydoc ranger.core.actions" for a list.
54 | self.fm.edit_file(target_filename)
55 |
56 | # The tab method is called when you press tab, and should return a list of
57 | # suggestions that the user will tab through.
58 | # tabnum is 1 for and -1 for by default
59 | def tab(self, tabnum):
60 | # This is a generic tab-completion function that iterates through the
61 | # content of the current directory.
62 | return self._tab_directory_content()
63 |
--------------------------------------------------------------------------------
/.config/ranger/plugins/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ameyrk99/dwm_rice/ecea6af2ca410dea8f5d4a2d98bbf1c9e93c4fc5/.config/ranger/plugins/__init__.py
--------------------------------------------------------------------------------
/.config/ranger/plugins/devicons.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/python
2 | # coding=UTF-8
3 | # These glyphs, and the mapping of file extensions to glyphs
4 | # has been copied from the vimscript code that is present in
5 | # https://github.com/ryanoasis/vim-devicons
6 | import re;
7 | import os;
8 |
9 | # all those glyphs will show as weird squares if you don't have the correct patched font
10 | # My advice is to use NerdFonts which can be found here:
11 | # https://github.com/ryanoasis/nerd-fonts
12 | file_node_extensions = {
13 | '7z' : '',
14 | 'a' : '',
15 | 'ai' : '',
16 | 'apk' : '',
17 | 'asm' : '',
18 | 'asp' : '',
19 | 'aup' : '',
20 | 'avi' : '',
21 | 'bat' : '',
22 | 'bmp' : '',
23 | 'bz2' : '',
24 | 'c' : '',
25 | 'c++' : '',
26 | 'cab' : '',
27 | 'cbr' : '',
28 | 'cbz' : '',
29 | 'cc' : '',
30 | 'class' : '',
31 | 'clj' : '',
32 | 'cljc' : '',
33 | 'cljs' : '',
34 | 'cmake' : '',
35 | 'coffee' : '',
36 | 'conf' : '',
37 | 'cp' : '',
38 | 'cpio' : '',
39 | 'cpp' : '',
40 | 'cs' : '',
41 | 'css' : '',
42 | 'cue' : '',
43 | 'cvs' : '',
44 | 'cxx' : '',
45 | 'd' : '',
46 | 'dart' : '',
47 | 'db' : '',
48 | 'deb' : '',
49 | 'diff' : '',
50 | 'dll' : '',
51 | 'doc' : '',
52 | 'docx' : '',
53 | 'dump' : '',
54 | 'edn' : '',
55 | 'efi' : '',
56 | 'ejs' : '',
57 | 'elf' : '',
58 | 'elm' : '',
59 | 'epub' : '',
60 | 'erl' : '',
61 | 'ex' : '',
62 | 'exe' : '',
63 | 'exs' : '',
64 | 'eex' : '',
65 | 'f#' : '',
66 | 'fifo' : '|',
67 | 'fish' : '',
68 | 'flac' : '',
69 | 'flv' : '',
70 | 'fs' : '',
71 | 'fsi' : '',
72 | 'fsscript' : '',
73 | 'fsx' : '',
74 | 'gem' : '',
75 | 'gif' : '',
76 | 'go' : '',
77 | 'gz' : '',
78 | 'gzip' : '',
79 | 'h' : '',
80 | 'hbs' : '',
81 | 'hrl' : '',
82 | 'hs' : '',
83 | 'htaccess' : '',
84 | 'htpasswd' : '',
85 | 'htm' : '',
86 | 'html' : '',
87 | 'ico' : '',
88 | 'img' : '',
89 | 'ini' : '',
90 | 'iso' : '',
91 | 'jar' : '',
92 | 'java' : '',
93 | 'jl' : '',
94 | 'jpeg' : '',
95 | 'jpg' : '',
96 | 'js' : '',
97 | 'json' : '',
98 | 'jsx' : '',
99 | 'key' : '',
100 | 'less' : '',
101 | 'lha' : '',
102 | 'lhs' : '',
103 | 'log' : '',
104 | 'lua' : '',
105 | 'lzh' : '',
106 | 'lzma' : '',
107 | 'm4a' : '',
108 | 'm4v' : '',
109 | 'markdown' : '',
110 | 'md' : '',
111 | 'mkv' : '',
112 | 'ml' : 'λ',
113 | 'mli' : 'λ',
114 | 'mov' : '',
115 | 'mp3' : '',
116 | 'mp4' : '',
117 | 'mpeg' : '',
118 | 'mpg' : '',
119 | 'msi' : '',
120 | 'mustache' : '',
121 | 'o' : '',
122 | 'ogg' : '',
123 | 'pdf' : '',
124 | 'php' : '',
125 | 'pl' : '',
126 | 'pm' : '',
127 | 'png' : '',
128 | 'pub' : '',
129 | 'ppt' : '',
130 | 'pptx' : '',
131 | 'psb' : '',
132 | 'psd' : '',
133 | 'py' : '',
134 | 'pyc' : '',
135 | 'pyd' : '',
136 | 'pyo' : '',
137 | 'rar' : '',
138 | 'rb' : '',
139 | 'rc' : '',
140 | 'rlib' : '',
141 | 'rom' : '',
142 | 'rpm' : '',
143 | 'rs' : '',
144 | 'rss' : '',
145 | 'rtf' : '',
146 | 's' : '',
147 | 'so' : '',
148 | 'scala' : '',
149 | 'scss' : '',
150 | 'sh' : '',
151 | 'slim' : '',
152 | 'sln' : '',
153 | 'sql' : '',
154 | 'styl' : '',
155 | 'suo' : '',
156 | 't' : '',
157 | 'tar' : '',
158 | 'tgz' : '',
159 | 'ts' : '',
160 | 'twig' : '',
161 | 'vim' : '',
162 | 'vimrc' : '',
163 | 'wav' : '',
164 | 'webm' : '',
165 | 'xbps' : '',
166 | 'xhtml' : '',
167 | 'xls' : '',
168 | 'xlsx' : '',
169 | 'xml' : '',
170 | 'xul' : '',
171 | 'xz' : '',
172 | 'yaml' : '',
173 | 'yml' : '',
174 | 'zip' : '',
175 | }
176 |
177 | dir_node_exact_matches = {
178 | # English
179 | '.git' : '',
180 | 'Desktop' : '',
181 | 'Documents' : '',
182 | 'Downloads' : '',
183 | 'Dotfiles' : '',
184 | 'Dropbox' : '',
185 | 'Music' : '',
186 | 'Pictures' : '',
187 | 'Public' : '',
188 | 'Templates' : '',
189 | 'Videos' : '',
190 | # Spanish
191 | 'Escritorio' : '',
192 | 'Documentos' : '',
193 | 'Descargas' : '',
194 | 'Música' : '',
195 | 'Imágenes' : '',
196 | 'Público' : '',
197 | 'Plantillas' : '',
198 | 'Vídeos' : '',
199 | # French
200 | 'Bureau' : '',
201 | 'Documents' : '',
202 | 'Images' : '',
203 | 'Musique' : '',
204 | 'Publique' : '',
205 | 'Téléchargements' : '',
206 | 'Vidéos' : '',
207 | # Portuguese
208 | 'Documentos' : '',
209 | 'Imagens' : '',
210 | 'Modelos' : '',
211 | 'Música' : '',
212 | 'Público' : '',
213 | 'Vídeos' : '',
214 | 'Área de trabalho' : '',
215 | # Italian
216 | 'Documenti' : '',
217 | 'Immagini' : '',
218 | 'Modelli' : '',
219 | 'Musica' : '',
220 | 'Pubblici' : '',
221 | 'Scaricati' : '',
222 | 'Scrivania' : '',
223 | 'Video' : '',
224 | # German
225 | 'Bilder' : '',
226 | 'Dokumente' : '',
227 | 'Musik' : '',
228 | 'Schreibtisch' : '',
229 | 'Vorlagen' : '',
230 | 'Öffentlich' : '',
231 | # Hungarian
232 | 'Dokumentumok' : '',
233 | 'Képek' : '',
234 | 'Modelli' : '',
235 | 'Zene' : '',
236 | 'Letöltések' : '',
237 | 'Számítógép' : '',
238 | 'Videók' : '',
239 | }
240 |
241 | file_node_exact_matches = {
242 | '.Xauthority' : '',
243 | '.Xdefaults' : '',
244 | '.Xresources' : '',
245 | '.bash_aliases' : '',
246 | '.bashprofile' : '',
247 | '.bash_profile' : '',
248 | '.bash_logout' : '',
249 | '.bash_history' : '',
250 | '.bashrc' : '',
251 | '.dmrc' : '',
252 | '.DS_Store' : '',
253 | '.fasd' : '',
254 | '.fehbg' : '',
255 | '.gitconfig' : '',
256 | '.gitattributes' : '',
257 | '.gitignore' : '',
258 | '.inputrc' : '',
259 | '.jack-settings' : '',
260 | '.mime.types' : '',
261 | '.nvidia-settings-rc' : '',
262 | '.pam_environment' : '',
263 | '.profile' : '',
264 | '.recently-used' : '',
265 | '.selected_editor' : '',
266 | '.vim' : '',
267 | '.vimrc' : '',
268 | '.viminfo' : '',
269 | '.xinitrc' : '',
270 | '.xinputrc' : '',
271 | 'config' : '',
272 | 'Dockerfile' : '',
273 | 'docker-compose.yml' : '',
274 | 'dropbox' : '',
275 | 'exact-match-case-sensitive-1.txt' : 'X1',
276 | 'exact-match-case-sensitive-2' : 'X2',
277 | 'favicon.ico' : '',
278 | 'a.out' : '',
279 | 'bspwmrc' : '',
280 | 'sxhkdrc' : '',
281 | 'Makefile' : '',
282 | 'Makefile.in' : '',
283 | 'Makefile.ac' : '',
284 | 'config.mk' : '',
285 | 'config.m4' : '',
286 | 'config.ac' : '',
287 | 'configure' : '',
288 | 'Rakefile' : '',
289 | 'gruntfile.coffee' : '',
290 | 'gruntfile.js' : '',
291 | 'gruntfile.ls' : '',
292 | 'gulpfile.coffee' : '',
293 | 'gulpfile.js' : '',
294 | 'gulpfile.ls' : '',
295 | 'ini' : '',
296 | 'ledger' : '',
297 | 'package.json' : '',
298 | 'package-lock.json' : '',
299 | '.ncmpcpp' : '',
300 | 'playlists' : '',
301 | 'known_hosts' : '',
302 | 'authorized_keys' : '',
303 | 'license' : '',
304 | 'LICENSE.md' : '',
305 | 'LICENSE' : '',
306 | 'LICENSE.txt' : '',
307 | 'mimeapps.list' : '',
308 | 'node_modules' : '',
309 | 'procfile' : '',
310 | 'react.jsx' : '',
311 | 'README.rst' : '',
312 | 'README.md' : '',
313 | 'README.markdown' : '',
314 | 'README' : '',
315 | 'README.txt' : '',
316 | 'user-dirs.dirs' : '',
317 | 'webpack.config.js' : '',
318 | }
319 |
320 | def devicon(file):
321 | if file.is_directory: return dir_node_exact_matches.get(file.relative_path, '')
322 | return file_node_exact_matches.get(os.path.basename(file.relative_path), file_node_extensions.get(file.extension, ''))
323 |
--------------------------------------------------------------------------------
/.config/ranger/plugins/devicons_linemode.py:
--------------------------------------------------------------------------------
1 | import ranger.api
2 | from ranger.core.linemode import LinemodeBase
3 | from .devicons import *
4 |
5 | @ranger.api.register_linemode
6 | class DevIconsLinemode(LinemodeBase):
7 | name = "devicons"
8 |
9 | uses_metadata = False
10 |
11 | def filetitle(self, file, metadata):
12 | return devicon(file) + ' ' + file.relative_path
13 |
14 | @ranger.api.register_linemode
15 | class DevIconsLinemodeFile(LinemodeBase):
16 | name = "filename"
17 |
18 | def filetitle(self, file, metadata):
19 | return devicon(file) + ' ' + file.relative_path
20 |
--------------------------------------------------------------------------------
/.config/ranger/scope.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -o noclobber -o noglob -o nounset -o pipefail
4 | IFS=$'\n'
5 |
6 | # If the option `use_preview_script` is set to `true`,
7 | # then this script will be called and its output will be displayed in ranger.
8 | # ANSI color codes are supported.
9 | # STDIN is disabled, so interactive scripts won't work properly
10 |
11 | # This script is considered a configuration file and must be updated manually.
12 | # It will be left untouched if you upgrade ranger.
13 |
14 | # Meanings of exit codes:
15 | # code | meaning | action of ranger
16 | # -----+------------+-------------------------------------------
17 | # 0 | success | Display stdout as preview
18 | # 1 | no preview | Display no preview at all
19 | # 2 | plain text | Display the plain content of the file
20 | # 3 | fix width | Don't reload when width changes
21 | # 4 | fix height | Don't reload when height changes
22 | # 5 | fix both | Don't ever reload
23 | # 6 | image | Display the image `$IMAGE_CACHE_PATH` points to as an image preview
24 | # 7 | image | Display the file directly as an image
25 |
26 | # Script arguments
27 | FILE_PATH="${1}" # Full path of the highlighted file
28 | PV_WIDTH="${2}" # Width of the preview pane (number of fitting characters)
29 | PV_HEIGHT="${3}" # Height of the preview pane (number of fitting characters)
30 | IMAGE_CACHE_PATH="${4}" # Full path that should be used to cache image preview
31 | PV_IMAGE_ENABLED="${5}" # 'True' if image previews are enabled, 'False' otherwise.
32 |
33 | FILE_EXTENSION="${FILE_PATH##*.}"
34 | FILE_EXTENSION_LOWER=$(echo ${FILE_EXTENSION} | tr '[:upper:]' '[:lower:]')
35 |
36 | # Settings
37 | HIGHLIGHT_SIZE_MAX=262143 # 256KiB
38 | HIGHLIGHT_TABWIDTH=8
39 | HIGHLIGHT_STYLE='pablo'
40 | PYGMENTIZE_STYLE='autumn'
41 |
42 |
43 | handle_extension() {
44 | case "${FILE_EXTENSION_LOWER}" in
45 | # Archive
46 | a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\
47 | rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)
48 | atool --list -- "${FILE_PATH}" && exit 5
49 | bsdtar --list --file "${FILE_PATH}" && exit 5
50 | exit 1;;
51 | rar)
52 | # Avoid password prompt by providing empty password
53 | unrar lt -p- -- "${FILE_PATH}" && exit 5
54 | exit 1;;
55 | 7z)
56 | # Avoid password prompt by providing empty password
57 | 7z l -p -- "${FILE_PATH}" && exit 5
58 | exit 1;;
59 |
60 | # PDF
61 | pdf)
62 | # Preview as text conversion
63 | pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - | fmt -w ${PV_WIDTH} && exit 5
64 | mutool draw -F txt -i -- "${FILE_PATH}" 1-10 | fmt -w ${PV_WIDTH} && exit 5
65 | exiftool "${FILE_PATH}" && exit 5
66 | exit 1;;
67 |
68 | # BitTorrent
69 | torrent)
70 | transmission-show -- "${FILE_PATH}" && exit 5
71 | exit 1;;
72 |
73 | # OpenDocument
74 | odt|ods|odp|sxw)
75 | # Preview as text conversion
76 | odt2txt "${FILE_PATH}" && exit 5
77 | exit 1;;
78 |
79 | # HTML
80 | htm|html|xhtml)
81 | # Preview as text conversion
82 | w3m -dump "${FILE_PATH}" && exit 5
83 | lynx -dump -- "${FILE_PATH}" && exit 5
84 | elinks -dump "${FILE_PATH}" && exit 5
85 | ;; # Continue with next handler on failure
86 | esac
87 | }
88 |
89 | handle_image() {
90 | local mimetype="${1}"
91 | case "${mimetype}" in
92 | # SVG
93 | # image/svg+xml)
94 | # convert "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
95 | # exit 1;;
96 |
97 | # Image
98 | image/*)
99 | local orientation
100 | orientation="$( identify -format '%[EXIF:Orientation]\n' -- "${FILE_PATH}" )"
101 | # If orientation data is present and the image actually
102 | # needs rotating ("1" means no rotation)...
103 | if [[ -n "$orientation" && "$orientation" != 1 ]]; then
104 | # ...auto-rotate the image according to the EXIF data.
105 | convert -- "${FILE_PATH}" -auto-orient "${IMAGE_CACHE_PATH}" && exit 6
106 | fi
107 |
108 | # `w3mimgdisplay` will be called for all images (unless overriden as above),
109 | # but might fail for unsupported types.
110 | exit 7;;
111 |
112 | # Video
113 | # video/*)
114 | # # Thumbnail
115 | # ffmpegthumbnailer -i "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" -s 0 && exit 6
116 | # exit 1;;
117 | # PDF
118 | # application/pdf)
119 | # pdftoppm -f 1 -l 1 \
120 | # -scale-to-x 1920 \
121 | # -scale-to-y -1 \
122 | # -singlefile \
123 | # -jpeg -tiffcompression jpeg \
124 | # -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \
125 | # && exit 6 || exit 1;;
126 |
127 | # Preview archives using the first image inside.
128 | # (Very useful for comic book collections for example.)
129 | # application/zip|application/x-rar|application/x-7z-compressed|\
130 | # application/x-xz|application/x-bzip2|application/x-gzip|application/x-tar)
131 | # local fn=""; local fe=""
132 | # local zip=""; local rar=""; local tar=""; local bsd=""
133 | # case "${mimetype}" in
134 | # application/zip) zip=1 ;;
135 | # application/x-rar) rar=1 ;;
136 | # application/x-7z-compressed) ;;
137 | # *) tar=1 ;;
138 | # esac
139 | # { [ "$tar" ] && fn=$(tar --list --file "${FILE_PATH}"); } || \
140 | # { fn=$(bsdtar --list --file "${FILE_PATH}") && bsd=1 && tar=""; } || \
141 | # { [ "$rar" ] && fn=$(unrar lb -p- -- "${FILE_PATH}"); } || \
142 | # { [ "$zip" ] && fn=$(zipinfo -1 -- "${FILE_PATH}"); } || return
143 | #
144 | # fn=$(echo "$fn" | python -c "import sys; import mimetypes as m; \
145 | # [ print(l, end='') for l in sys.stdin if \
146 | # (m.guess_type(l[:-1])[0] or '').startswith('image/') ]" |\
147 | # sort -V | head -n 1)
148 | # [ "$fn" = "" ] && return
149 | # [ "$bsd" ] && fn=$(printf '%b' "$fn")
150 | #
151 | # [ "$tar" ] && tar --extract --to-stdout \
152 | # --file "${FILE_PATH}" -- "$fn" > "${IMAGE_CACHE_PATH}" && exit 6
153 | # fe=$(echo -n "$fn" | sed 's/[][*?\]/\\\0/g')
154 | # [ "$bsd" ] && bsdtar --extract --to-stdout \
155 | # --file "${FILE_PATH}" -- "$fe" > "${IMAGE_CACHE_PATH}" && exit 6
156 | # [ "$bsd" ] || [ "$tar" ] && rm -- "${IMAGE_CACHE_PATH}"
157 | # [ "$rar" ] && unrar p -p- -inul -- "${FILE_PATH}" "$fn" > \
158 | # "${IMAGE_CACHE_PATH}" && exit 6
159 | # [ "$zip" ] && unzip -pP "" -- "${FILE_PATH}" "$fe" > \
160 | # "${IMAGE_CACHE_PATH}" && exit 6
161 | # [ "$rar" ] || [ "$zip" ] && rm -- "${IMAGE_CACHE_PATH}"
162 | # ;;
163 | esac
164 | }
165 |
166 | handle_mime() {
167 | local mimetype="${1}"
168 | case "${mimetype}" in
169 | # Text
170 | text/* | */xml)
171 | # Syntax highlight
172 | if [[ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then
173 | exit 2
174 | fi
175 | if [[ "$( tput colors )" -ge 256 ]]; then
176 | local pygmentize_format='terminal256'
177 | local highlight_format='xterm256'
178 | else
179 | local pygmentize_format='terminal'
180 | local highlight_format='ansi'
181 | fi
182 | highlight --replace-tabs="${HIGHLIGHT_TABWIDTH}" --out-format="${highlight_format}" \
183 | --style="${HIGHLIGHT_STYLE}" --force -- "${FILE_PATH}" && exit 5
184 | # pygmentize -f "${pygmentize_format}" -O "style=${PYGMENTIZE_STYLE}" -- "${FILE_PATH}" && exit 5
185 | exit 2;;
186 |
187 | # Image
188 | image/*)
189 | # Preview as text conversion
190 | # img2txt --gamma=0.6 --width="${PV_WIDTH}" -- "${FILE_PATH}" && exit 4
191 | exiftool "${FILE_PATH}" && exit 5
192 | exit 1;;
193 |
194 | # Video and audio
195 | video/* | audio/*)
196 | mediainfo "${FILE_PATH}" && exit 5
197 | exiftool "${FILE_PATH}" && exit 5
198 | exit 1;;
199 | esac
200 | }
201 |
202 | handle_fallback() {
203 | echo '----- File Type Classification -----' && file --dereference --brief -- "${FILE_PATH}" && exit 5
204 | exit 1
205 | }
206 |
207 |
208 | MIMETYPE="$( file --dereference --brief --mime-type -- "${FILE_PATH}" )"
209 | if [[ "${PV_IMAGE_ENABLED}" == 'True' ]]; then
210 | handle_image "${MIMETYPE}"
211 | fi
212 | handle_extension
213 | handle_mime "${MIMETYPE}"
214 | handle_fallback
215 |
216 | exit 1
217 |
--------------------------------------------------------------------------------
/.config/spicetify/Themes/Jellybeans/color.ini:
--------------------------------------------------------------------------------
1 | [Base]
2 | ; Dark Purple - morpho theme
3 | main_fg = adadad
4 | secondary_fg = e8e8de
5 | main_bg = 121212
6 | sidebar_and_player_bg = 121212
7 | cover_overlay_and_shadow = 000000
8 | indicator_fg_and_button_bg = adadad
9 | pressing_fg = d8ad4c
10 | slider_bg = 3b3b3b
11 | sidebar_indicator_and_hover_button_bg = adadad
12 | scrollbar_fg_and_selected_row_bg = 3b3b3b
13 | pressing_button_fg = e8e8de
14 | pressing_button_bg = 3b3b3b
15 | selected_button = adadad
16 | miscellaneous_bg = 3b3b3b
17 | miscellaneous_hover_bg = 3b3b3b
18 | preserve_1 = FFFFFF
19 |
20 |
--------------------------------------------------------------------------------
/.config/spicetify/config.ini:
--------------------------------------------------------------------------------
1 | [Setting]
2 | inject_css = 1
3 | replace_colors = 1
4 | overwrite_assets = 0
5 | spotify_path = /opt/spotify
6 | prefs_path = /home/mark/.config/spotify/prefs
7 | current_theme = Jellybeans
8 | color_scheme =
9 |
10 | [Preprocesses]
11 | disable_sentry = 1
12 | disable_ui_logging = 1
13 | remove_rtl_rule = 1
14 | expose_apis = 1
15 |
16 | [AdditionalOptions]
17 | experimental_features = 0
18 | fastUser_switching = 0
19 | home = 0
20 | lyric_force_no_sync = 0
21 | new_feedback_ui = 0
22 | radio = 0
23 | song_page = 0
24 | custom_apps =
25 | lyric_always_show = 0
26 | made_for_you_hub = 0
27 | search_in_sidebar = 0
28 | visualization_high_framerate = 0
29 | extensions =
30 | minimal_ui = 0
31 | tastebuds = 0
32 |
33 | ; DO NOT CHANGE!
34 | [Backup]
35 | version = 1.1.10.546.ge08ef575
36 |
37 |
--------------------------------------------------------------------------------
/.config/zathura/zathurarc:
--------------------------------------------------------------------------------
1 | # Disable statusbar. Default is "s"
2 | set guioptions ""
3 | # Show a tilde instead of the full home path
4 | set statusbar-home-tilde "true"
5 | set statusbar-h-padding 0
6 | set statusbar-v-padding 0
7 | set page-padding 2
8 | set selection-clipboard clipboard
9 | map K zoom in
10 | map J zoom out
11 | map u scroll half-up
12 | map d scroll half-down
13 | map D toggle_page_mode
14 | set recolor true
15 | set default-bg "#121212"
16 | set default-fg "#ababab"
17 | set statusbar-bg "#121212"
18 | set statusbar-fg "#ababab"
19 | set recolor-darkcolor "#ababab"
20 | set recolor-lightcolor "#121212"
21 |
--------------------------------------------------------------------------------
/.fonts/Font Awesome 5 Brands-Regular-400.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ameyrk99/dwm_rice/ecea6af2ca410dea8f5d4a2d98bbf1c9e93c4fc5/.fonts/Font Awesome 5 Brands-Regular-400.otf
--------------------------------------------------------------------------------
/.fonts/Font Awesome 5 Free-Regular-400.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ameyrk99/dwm_rice/ecea6af2ca410dea8f5d4a2d98bbf1c9e93c4fc5/.fonts/Font Awesome 5 Free-Regular-400.otf
--------------------------------------------------------------------------------
/.fonts/Font Awesome 5 Free-Solid-900.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ameyrk99/dwm_rice/ecea6af2ca410dea8f5d4a2d98bbf1c9e93c4fc5/.fonts/Font Awesome 5 Free-Solid-900.otf
--------------------------------------------------------------------------------
/.fonts/Hermit-Bold.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ameyrk99/dwm_rice/ecea6af2ca410dea8f5d4a2d98bbf1c9e93c4fc5/.fonts/Hermit-Bold.otf
--------------------------------------------------------------------------------
/.fonts/Hermit-BoldItalic.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ameyrk99/dwm_rice/ecea6af2ca410dea8f5d4a2d98bbf1c9e93c4fc5/.fonts/Hermit-BoldItalic.otf
--------------------------------------------------------------------------------
/.fonts/Hermit-Light.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ameyrk99/dwm_rice/ecea6af2ca410dea8f5d4a2d98bbf1c9e93c4fc5/.fonts/Hermit-Light.otf
--------------------------------------------------------------------------------
/.fonts/Hermit-LightItalic.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ameyrk99/dwm_rice/ecea6af2ca410dea8f5d4a2d98bbf1c9e93c4fc5/.fonts/Hermit-LightItalic.otf
--------------------------------------------------------------------------------
/.fonts/Hermit-Regular.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ameyrk99/dwm_rice/ecea6af2ca410dea8f5d4a2d98bbf1c9e93c4fc5/.fonts/Hermit-Regular.otf
--------------------------------------------------------------------------------
/.fonts/Hermit-RegularItalic.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ameyrk99/dwm_rice/ecea6af2ca410dea8f5d4a2d98bbf1c9e93c4fc5/.fonts/Hermit-RegularItalic.otf
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .config/ranger/plugins/__pycache__
--------------------------------------------------------------------------------
/.zshrc:
--------------------------------------------------------------------------------
1 | # If you come from bash you might have to change your $PATH.
2 | # export PATH=$HOME/bin:/usr/local/bin:$PATH
3 |
4 | # Path to your oh-my-zsh installation.
5 | export ZSH="/home/mark/.oh-my-zsh"
6 |
7 | # Set name of the theme to load. Optionally, if you set this to "random"
8 | # it'll load a random theme each time that oh-my-zsh is loaded.
9 | # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
10 | ZSH_THEME="terminalparty"
11 |
12 | # Set list of themes to load
13 | # Setting this variable when ZSH_THEME=random
14 | # cause zsh load theme from this variable instead of
15 | # looking in ~/.oh-my-zsh/themes/
16 | # An empty array have no effect
17 | # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
18 |
19 | # Uncomment the following line to use case-sensitive completion.
20 | # CASE_SENSITIVE="true"
21 |
22 | # Uncomment the following line to use hyphen-insensitive completion. Case
23 | # sensitive completion must be off. _ and - will be interchangeable.
24 | # HYPHEN_INSENSITIVE="true"
25 |
26 | # Uncomment the following line to disable bi-weekly auto-update checks.
27 | # DISABLE_AUTO_UPDATE="true"
28 |
29 | # Uncomment the following line to change how often to auto-update (in days).
30 | # export UPDATE_ZSH_DAYS=13
31 |
32 | # Uncomment the following line to disable colors in ls.
33 | # DISABLE_LS_COLORS="true"
34 |
35 | # Uncomment the following line to disable auto-setting terminal title.
36 | # DISABLE_AUTO_TITLE="true"
37 |
38 | # Uncomment the following line to enable command auto-correction.
39 | # ENABLE_CORRECTION="true"
40 |
41 | # Uncomment the following line to display red dots whilst waiting for completion.
42 | COMPLETION_WAITING_DOTS="true"
43 |
44 | # Uncomment the following line if you want to disable marking untracked files
45 | # under VCS as dirty. This makes repository status check for large repositories
46 | # much, much faster.
47 | # DISABLE_UNTRACKED_FILES_DIRTY="true"
48 |
49 | # Uncomment the following line if you want to change the command execution time
50 | # stamp shown in the history command output.
51 | # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
52 | HIST_STAMPS="yyyy-mm-dd"
53 |
54 | # Would you like to use another custom folder than $ZSH/custom?
55 | # ZSH_CUSTOM=/path/to/new-custom-folder
56 |
57 | # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
58 | # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
59 | # Example format: plugins=(rails git textmate ruby lighthouse)
60 | # Add wisely, as too many plugins slow down shell startup.
61 | plugins=(
62 | extract
63 | )
64 |
65 | source $ZSH/oh-my-zsh.sh
66 |
67 | alias mv="mv -i"
68 | alias rm="rm -i"
69 |
70 | alias vim="nvim"
71 | alias v="nvim"
72 | alias d="ranger"
73 | alias term="st -e &"
74 |
75 | # alias colorpanes="~/.i3/scripts/colorpanes.sh"
76 | alias uta="cd ~/Work/spr2020"
77 | alias :q="exit"
78 | alias :wq="echo This isn\'t vim, dumbass | cowsay"
79 | alias swm="sudo wifi-menu"
80 | alias setbg="~/.dotfiles/scripts/wallpaper.sh"
81 |
82 | # pacman
83 | alias pacget="sudo pacman -S"
84 | alias pacrm="sudo pacman -Rns"
85 | alias pacstat="yay -Ps"
86 |
87 | # Git
88 | alias gc="git clone"
89 | alias gs="git status"
90 | alias ga="git add"
91 | alias gm="git commit -m"
92 |
93 | export BROWSER=/usr/bin/firefox
94 | VISUAL=nvim; export VISUAL EDITOR=nvim; export EDITOR
95 |
96 | # Java
97 | # export PATH=$PATH:/usr/lib/jvm/java-12-openjdk/bin/
98 |
99 | # Android
100 | # export _JAVA_AWT_WM_NONREPARENTING=1
101 | # export ANDROID_HOME=$HOME/Android/Sdk
102 | # export PATH=$PATH:$ANDROID_HOME/emulator
103 | # export PATH=$PATH:$ANDROID_HOME/tools
104 | # export PATH=$PATH:$ANDROID_HOME/tools/bin
105 | # export PATH=$PATH:$ANDROID_HOME/platform-tools
106 |
107 | # Go
108 | export GOPATH=$HOME/go
109 | export GOBIN=$GOPATH/bin
110 | export PATH=$GOPATH:$GOBIN:$PATH
111 |
112 | # ignore files for nvim and vim
113 | zstyle ':completion:*:*:vim:*' file-patterns '^*.(aux|log|pdf|db|pyc|out):source-files' '*:all-files'
114 | zstyle ':completion:*:*:nvim:*' file-patterns '^*.(aux|log|pdf|db|pyc|out):source-files' '*:all-files'
115 |
116 | # Make cow say short and offensive things from fortune
117 | # fortune -so | cowsay
118 | # echo DWM | figlet | lolcat
119 | # echo DWM | figlet
120 |
121 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # My Dotfiles
2 |
3 | 
4 |
5 | ## Wallpaper
6 |
7 | 
8 |
9 | ## [Old Rice](./old_rice)
10 |
11 | 
12 |
--------------------------------------------------------------------------------
/diffs/dmenu.diff:
--------------------------------------------------------------------------------
1 | --- dmenu_org/config.def.h 2020-04-14 09:19:51.719896844 -0500
2 | +++ dmenu/config.def.h 2020-04-23 21:58:29.885544659 -0500
3 | @@ -4,17 +4,19 @@
4 | static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
5 | /* -fn option overrides fonts[0]; default X11 font or font set */
6 | static const char *fonts[] = {
7 | - "monospace:size=10"
8 | + "Hermit-Regular:size=12:antialias=true:autohint=true"
9 | };
10 | static const char *prompt = NULL; /* -p option; prompt to the left of input field */
11 | +#include "../colors.h"
12 | static const char *colors[SchemeLast][2] = {
13 | - /* fg bg */
14 | - [SchemeNorm] = { "#bbbbbb", "#222222" },
15 | - [SchemeSel] = { "#eeeeee", "#005577" },
16 | - [SchemeOut] = { "#000000", "#00ffff" },
17 | + /* fg bg */
18 | + [SchemeNorm] = { col_foreground, col_background },
19 | + [SchemeSel] = { col_background, col_theme },
20 | + [SchemeOut] = { col_foreground, col_background },
21 | };
22 | /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
23 | static unsigned int lines = 0;
24 | +static unsigned int lineheight = 29; /* -h option; minimum height of a menu line */
25 |
26 | /*
27 | * Characters not considered part of a word while deleting words
28 | --- dmenu_org/dmenu.1 2020-04-14 09:19:51.719896844 -0500
29 | +++ dmenu/dmenu.1 2020-04-05 11:52:53.075668073 -0500
30 | @@ -50,6 +50,9 @@
31 | .BI \-l " lines"
32 | dmenu lists items vertically, with the given number of lines.
33 | .TP
34 | +.BI \-h " height"
35 | +dmenu uses a menu line of at least 'height' pixels tall, but no less than 8.
36 | +.TP
37 | .BI \-m " monitor"
38 | dmenu is displayed on the monitor number supplied. Monitor numbers are starting
39 | from 0.
40 | --- dmenu_org/dmenu.c 2020-04-14 09:19:51.719896844 -0500
41 | +++ dmenu/dmenu.c 2020-04-05 11:52:53.075668073 -0500
42 | @@ -131,7 +131,7 @@
43 | {
44 | unsigned int curpos;
45 | struct item *item;
46 | - int x = 0, y = 0, w;
47 | + int x = 0, y = 0, fh = drw->fonts->h, w;
48 |
49 | drw_setscheme(drw, scheme[SchemeNorm]);
50 | drw_rect(drw, 0, 0, mw, mh, 1, 1);
51 | @@ -148,7 +148,7 @@
52 | curpos = TEXTW(text) - TEXTW(&text[cursor]);
53 | if ((curpos += lrpad / 2 - 1) < w) {
54 | drw_setscheme(drw, scheme[SchemeNorm]);
55 | - drw_rect(drw, x + curpos, 2, 2, bh - 4, 1, 0);
56 | + drw_rect(drw, x + curpos, 2 + (bh-fh)/2, 2, fh - 4, 1, 0);
57 | }
58 |
59 | if (lines > 0) {
60 | @@ -609,6 +609,7 @@
61 |
62 | /* calculate menu geometry */
63 | bh = drw->fonts->h + 2;
64 | + bh = MAX(bh,lineheight); /* make a menu line AT LEAST 'lineheight' tall */
65 | lines = MAX(lines, 0);
66 | mh = (lines + 1) * bh;
67 | #ifdef XINERAMA
68 | @@ -690,6 +691,7 @@
69 | usage(void)
70 | {
71 | fputs("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n"
72 | + " [-h height]\n"
73 | " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]\n", stderr);
74 | exit(1);
75 | }
76 | @@ -723,6 +725,10 @@
77 | prompt = argv[++i];
78 | else if (!strcmp(argv[i], "-fn")) /* font or font set */
79 | fonts[0] = argv[++i];
80 | + else if(!strcmp(argv[i], "-h")) { /* minimum height of one menu line */
81 | + lineheight = atoi(argv[++i]);
82 | + lineheight = MAX(lineheight,8); /* reasonable default in case of value too small/negative */
83 | + }
84 | else if (!strcmp(argv[i], "-nb")) /* normal background color */
85 | colors[SchemeNorm][ColBg] = argv[++i];
86 | else if (!strcmp(argv[i], "-nf")) /* normal foreground color */
87 |
--------------------------------------------------------------------------------
/dwm_screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ameyrk99/dwm_rice/ecea6af2ca410dea8f5d4a2d98bbf1c9e93c4fc5/dwm_screenshot.png
--------------------------------------------------------------------------------
/old_rice/.Xresources:
--------------------------------------------------------------------------------
1 | !--------------!
2 | ! URXVT CONFIG !
3 | !--------------!
4 |
5 | URxvt.internalBorder: 0
6 | URxvt.scrollBar: false
7 | URxvt.letterSpace: -1
8 | URxvt.cursorColor: #f1f1f0
9 | URxvt.font: xft:Monofur:size=14, xft:IBM 3270:size=14, xft:Fira Mono:size=11, xft:Font Awesome 5 Free Solid:size=10
10 | !! Larger history limit
11 | urxvt.saveLines: 1000000
12 |
13 | !! Perl extensions
14 | urxvt.perl-ext-common: default,matcher,font-size,clipboard
15 | !! Open urls in browser with Control-Click
16 | urxvt.urlLauncher: /usr/bin/firefox
17 | urxvt.matcher.button: C1
18 | !! Change font size on Control-Plus/Minus
19 | URxvt.keysym.Control-0x2b: perl:font-size:increase
20 | URxvt.keysym.Control-0x2d: perl:font-size:decrease
21 | URxvt.copyCommand: xclip -i -selection clipboard
22 | URxvt.pasteCommand: xclip -o -selection clipboard
23 | URxvt.keysym.m-c: perl:clipboard:copy
24 | URxvt.keysym.m-v: perl:clipboard:paste
25 |
26 | ! YoRHa
27 | ! special
28 | *.foreground: #3c3836
29 | *.background: #f2e5bc
30 | *.cursorColor: #3c3836
31 |
32 | ! black
33 | *.color0: #fbf1c7
34 | *.color8: #928374
35 |
36 | ! red
37 | *.color1: #cc241d
38 | *.color9: #9d0006
39 |
40 | ! green
41 | *.color2: #98971a
42 | *.color10: #79740e
43 |
44 | ! yellow
45 | *.color3: #d79921
46 | *.color11: #b57614
47 |
48 | ! blue
49 | *.color4: #458588
50 | *.color12: #076678
51 |
52 | ! magenta
53 | *.color5: #b16286
54 | *.color13: #8f3f71
55 |
56 | ! cyan
57 | *.color6: #689d6a
58 | *.color14: #427b58
59 |
60 | ! white
61 | *.color7: #7c6f64
62 | *.color15: #3c3836
63 |
64 | ! Palenight
65 | ! special
66 | ! *.foreground: #eceff1
67 | ! *.background: #292d3e
68 | ! *.cursorColor: #eceff1
69 | !
70 | ! ! black
71 | ! *.color0: #546e7a
72 | ! *.color8: #546e7a
73 | !
74 | ! ! red
75 | ! *.color1: #ff5370
76 | ! *.color9: #ff5370
77 | !
78 | ! ! green
79 | ! *.color2: #c3e88d
80 | ! *.color10: #c3e88d
81 | !
82 | ! ! yellow
83 | ! *.color3: #ffcb6b
84 | ! *.color11: #ffcb6b
85 | !
86 | ! ! blue
87 | ! *.color4: #82aaff
88 | ! *.color12: #82aaff
89 | !
90 | ! ! magenta
91 | ! *.color5: #c792ea
92 | ! *.color13: #c792ea
93 | !
94 | ! ! cyan
95 | ! *.color6: #89ddff
96 | ! *.color14: #89ddff
97 | !
98 | ! ! white
99 | ! *.color7: #ffffff
100 | ! *.color15: #ffffff
101 |
102 |
103 | ! Black color that will not be affected by bold highlighting.
104 | *.color66: #000000
105 | *color66: #000000
106 |
107 |
--------------------------------------------------------------------------------
/old_rice/.config/bat/config:
--------------------------------------------------------------------------------
1 | --theme="base16"
2 |
--------------------------------------------------------------------------------
/old_rice/.config/dunst/dunstrc:
--------------------------------------------------------------------------------
1 | [global]
2 | alignment = left
3 | allow_markup = yes
4 | bounce_freq = 0
5 | browser = /usr/bin/firefox --new-tab
6 | dmenu = /usr/bin/dmenu -fn "Monofur:size=14" -nb "#292d3e" -nb "#292d3e" -nf "#eceff1" -sf "#292d3e" -sb "#c3e88d" -p dunst:
7 | follow = none
8 | font = IBM 3270 12
9 | format = "%a\n%s\n%b"
10 | icon_folders = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/:/usr/share/icons/Adwaita/16x16/apps/
11 | # geometry [{width}]x{height}][+/-{x}+/-{y}]
12 | geometry = "300x8-9+30"
13 | history_length = 20
14 | horizontal_padding = 8
15 | idle_threshold = 120
16 | ignore_newline = no
17 | indicate_hidden = yes
18 | icons_show = left
19 | show_icons = yes
20 | line_height = 0
21 | monitor = 0
22 | padding = 5
23 | separator_color = frame
24 | separator_height = 1
25 | show_age_threshold = 60
26 | show_indicators = yes
27 | shrink = no
28 | sort = yes
29 | startup_notification = false
30 | sticky_history = no
31 | transparency = 0
32 | word_wrap = no
33 |
34 | [frame]
35 | width = 2
36 | color = "#3c3836"
37 |
38 | [shortcuts]
39 | close = mod4+x
40 | close_all = mod4+ctrl+x
41 | history = mod4+grave
42 | context = ctrl+shift+period
43 |
44 | [urgency_low]
45 | background = "#f2e5bc"
46 | foreground = "#3c3836"
47 | timeout = 8
48 |
49 | [urgency_normal]
50 | background = "#f2e5bc"
51 | foreground = "#3c3836"
52 | timeout = 10
53 |
54 | [urgency_critical]
55 | background = "#ff5370"
56 | foreground = "#3c3836"
57 | timeout = 13
58 |
59 |
--------------------------------------------------------------------------------
/old_rice/.config/pulseaudio-ctl/config:
--------------------------------------------------------------------------------
1 | #
2 | # $HOME/.config/pulseaudio-ctl/config
3 | #
4 |
5 | # The default setting is for pulseaudio-ctl to NOT increase to volume level
6 | # above 100 % but Some users may wish exceed this level. If this describes
7 | # your use case, uncomment the UPPER_THRESHOLD variable below setting it to
8 | # the new upper threshold.
9 | #
10 | UPPER_THRESHOLD=100
11 |
12 | # Push output through libnotify. Set to any value to enable this feature
13 | # and note that you must have /usr/bin/notify-send to use this. On Arch
14 | # libnotify provides this. Other distros may not name it as such.
15 | #
16 | #NOTIFY=yes
17 |
18 | # Show a graphical progress-bar type visualization of the volume level in
19 | # libnotify. No setting or commented out will show a simply percentage but
20 | # a setting will convert the percentage to a progress-bar in libnotify.
21 | #
22 | #BARCHART=yes
23 |
24 | # Use KDE OSD notification. Set to any value to enable this feature.
25 | #KDE_OSD=yes
26 |
--------------------------------------------------------------------------------
/old_rice/.config/ranger/commands.py:
--------------------------------------------------------------------------------
1 | # This is a sample commands.py. You can add your own commands here.
2 | #
3 | # Please refer to commands_full.py for all the default commands and a complete
4 | # documentation. Do NOT add them all here, or you may end up with defunct
5 | # commands when upgrading ranger.
6 |
7 | # A simple command for demonstration purposes follows.
8 | # -----------------------------------------------------------------------------
9 |
10 | from __future__ import (absolute_import, division, print_function)
11 |
12 | # You can import any python module as needed.
13 | import os
14 |
15 | # You always need to import ranger.api.commands here to get the Command class:
16 | from ranger.api.commands import Command
17 |
18 |
19 | # Any class that is a subclass of "Command" will be integrated into ranger as a
20 | # command. Try typing ":my_edit" in ranger!
21 | class my_edit(Command):
22 | # The so-called doc-string of the class will be visible in the built-in
23 | # help that is accessible by typing "?c" inside ranger.
24 | """:my_edit
25 |
26 | A sample command for demonstration purposes that opens a file in an editor.
27 | """
28 |
29 | # The execute method is called when you run this command in ranger.
30 | def execute(self):
31 | # self.arg(1) is the first (space-separated) argument to the function.
32 | # This way you can write ":my_edit somefilename".
33 | if self.arg(1):
34 | # self.rest(1) contains self.arg(1) and everything that follows
35 | target_filename = self.rest(1)
36 | else:
37 | # self.fm is a ranger.core.filemanager.FileManager object and gives
38 | # you access to internals of ranger.
39 | # self.fm.thisfile is a ranger.container.file.File object and is a
40 | # reference to the currently selected file.
41 | target_filename = self.fm.thisfile.path
42 |
43 | # This is a generic function to print text in ranger.
44 | self.fm.notify("Let's edit the file " + target_filename + "!")
45 |
46 | # Using bad=True in fm.notify allows you to print error messages:
47 | if not os.path.exists(target_filename):
48 | self.fm.notify("The given file does not exist!", bad=True)
49 | return
50 |
51 | # This executes a function from ranger.core.acitons, a module with a
52 | # variety of subroutines that can help you construct commands.
53 | # Check out the source, or run "pydoc ranger.core.actions" for a list.
54 | self.fm.edit_file(target_filename)
55 |
56 | # The tab method is called when you press tab, and should return a list of
57 | # suggestions that the user will tab through.
58 | # tabnum is 1 for and -1 for by default
59 | def tab(self, tabnum):
60 | # This is a generic tab-completion function that iterates through the
61 | # content of the current directory.
62 | return self._tab_directory_content()
63 |
--------------------------------------------------------------------------------
/old_rice/.config/ranger/scope.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -o noclobber -o noglob -o nounset -o pipefail
4 | IFS=$'\n'
5 |
6 | # If the option `use_preview_script` is set to `true`,
7 | # then this script will be called and its output will be displayed in ranger.
8 | # ANSI color codes are supported.
9 | # STDIN is disabled, so interactive scripts won't work properly
10 |
11 | # This script is considered a configuration file and must be updated manually.
12 | # It will be left untouched if you upgrade ranger.
13 |
14 | # Meanings of exit codes:
15 | # code | meaning | action of ranger
16 | # -----+------------+-------------------------------------------
17 | # 0 | success | Display stdout as preview
18 | # 1 | no preview | Display no preview at all
19 | # 2 | plain text | Display the plain content of the file
20 | # 3 | fix width | Don't reload when width changes
21 | # 4 | fix height | Don't reload when height changes
22 | # 5 | fix both | Don't ever reload
23 | # 6 | image | Display the image `$IMAGE_CACHE_PATH` points to as an image preview
24 | # 7 | image | Display the file directly as an image
25 |
26 | # Script arguments
27 | FILE_PATH="${1}" # Full path of the highlighted file
28 | PV_WIDTH="${2}" # Width of the preview pane (number of fitting characters)
29 | PV_HEIGHT="${3}" # Height of the preview pane (number of fitting characters)
30 | IMAGE_CACHE_PATH="${4}" # Full path that should be used to cache image preview
31 | PV_IMAGE_ENABLED="${5}" # 'True' if image previews are enabled, 'False' otherwise.
32 |
33 | FILE_EXTENSION="${FILE_PATH##*.}"
34 | FILE_EXTENSION_LOWER=$(echo ${FILE_EXTENSION} | tr '[:upper:]' '[:lower:]')
35 |
36 | # Settings
37 | HIGHLIGHT_SIZE_MAX=262143 # 256KiB
38 | HIGHLIGHT_TABWIDTH=8
39 | HIGHLIGHT_STYLE='pablo'
40 | PYGMENTIZE_STYLE='autumn'
41 |
42 |
43 | handle_extension() {
44 | case "${FILE_EXTENSION_LOWER}" in
45 | # Archive
46 | a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\
47 | rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)
48 | atool --list -- "${FILE_PATH}" && exit 5
49 | bsdtar --list --file "${FILE_PATH}" && exit 5
50 | exit 1;;
51 | rar)
52 | # Avoid password prompt by providing empty password
53 | unrar lt -p- -- "${FILE_PATH}" && exit 5
54 | exit 1;;
55 | 7z)
56 | # Avoid password prompt by providing empty password
57 | 7z l -p -- "${FILE_PATH}" && exit 5
58 | exit 1;;
59 |
60 | # PDF
61 | pdf)
62 | # Preview as text conversion
63 | pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - | fmt -w ${PV_WIDTH} && exit 5
64 | mutool draw -F txt -i -- "${FILE_PATH}" 1-10 | fmt -w ${PV_WIDTH} && exit 5
65 | exiftool "${FILE_PATH}" && exit 5
66 | exit 1;;
67 |
68 | # BitTorrent
69 | torrent)
70 | transmission-show -- "${FILE_PATH}" && exit 5
71 | exit 1;;
72 |
73 | # OpenDocument
74 | odt|ods|odp|sxw)
75 | # Preview as text conversion
76 | odt2txt "${FILE_PATH}" && exit 5
77 | exit 1;;
78 |
79 | # HTML
80 | htm|html|xhtml)
81 | # Preview as text conversion
82 | w3m -dump "${FILE_PATH}" && exit 5
83 | lynx -dump -- "${FILE_PATH}" && exit 5
84 | elinks -dump "${FILE_PATH}" && exit 5
85 | ;; # Continue with next handler on failure
86 | esac
87 | }
88 |
89 | handle_image() {
90 | local mimetype="${1}"
91 | case "${mimetype}" in
92 | # SVG
93 | # image/svg+xml)
94 | # convert "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
95 | # exit 1;;
96 |
97 | # Image
98 | image/*)
99 | local orientation
100 | orientation="$( identify -format '%[EXIF:Orientation]\n' -- "${FILE_PATH}" )"
101 | # If orientation data is present and the image actually
102 | # needs rotating ("1" means no rotation)...
103 | if [[ -n "$orientation" && "$orientation" != 1 ]]; then
104 | # ...auto-rotate the image according to the EXIF data.
105 | convert -- "${FILE_PATH}" -auto-orient "${IMAGE_CACHE_PATH}" && exit 6
106 | fi
107 |
108 | # `w3mimgdisplay` will be called for all images (unless overriden as above),
109 | # but might fail for unsupported types.
110 | exit 7;;
111 |
112 | # Video
113 | # video/*)
114 | # # Thumbnail
115 | # ffmpegthumbnailer -i "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" -s 0 && exit 6
116 | # exit 1;;
117 | # PDF
118 | # application/pdf)
119 | # pdftoppm -f 1 -l 1 \
120 | # -scale-to-x 1920 \
121 | # -scale-to-y -1 \
122 | # -singlefile \
123 | # -jpeg -tiffcompression jpeg \
124 | # -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \
125 | # && exit 6 || exit 1;;
126 |
127 | # Preview archives using the first image inside.
128 | # (Very useful for comic book collections for example.)
129 | # application/zip|application/x-rar|application/x-7z-compressed|\
130 | # application/x-xz|application/x-bzip2|application/x-gzip|application/x-tar)
131 | # local fn=""; local fe=""
132 | # local zip=""; local rar=""; local tar=""; local bsd=""
133 | # case "${mimetype}" in
134 | # application/zip) zip=1 ;;
135 | # application/x-rar) rar=1 ;;
136 | # application/x-7z-compressed) ;;
137 | # *) tar=1 ;;
138 | # esac
139 | # { [ "$tar" ] && fn=$(tar --list --file "${FILE_PATH}"); } || \
140 | # { fn=$(bsdtar --list --file "${FILE_PATH}") && bsd=1 && tar=""; } || \
141 | # { [ "$rar" ] && fn=$(unrar lb -p- -- "${FILE_PATH}"); } || \
142 | # { [ "$zip" ] && fn=$(zipinfo -1 -- "${FILE_PATH}"); } || return
143 | #
144 | # fn=$(echo "$fn" | python -c "import sys; import mimetypes as m; \
145 | # [ print(l, end='') for l in sys.stdin if \
146 | # (m.guess_type(l[:-1])[0] or '').startswith('image/') ]" |\
147 | # sort -V | head -n 1)
148 | # [ "$fn" = "" ] && return
149 | # [ "$bsd" ] && fn=$(printf '%b' "$fn")
150 | #
151 | # [ "$tar" ] && tar --extract --to-stdout \
152 | # --file "${FILE_PATH}" -- "$fn" > "${IMAGE_CACHE_PATH}" && exit 6
153 | # fe=$(echo -n "$fn" | sed 's/[][*?\]/\\\0/g')
154 | # [ "$bsd" ] && bsdtar --extract --to-stdout \
155 | # --file "${FILE_PATH}" -- "$fe" > "${IMAGE_CACHE_PATH}" && exit 6
156 | # [ "$bsd" ] || [ "$tar" ] && rm -- "${IMAGE_CACHE_PATH}"
157 | # [ "$rar" ] && unrar p -p- -inul -- "${FILE_PATH}" "$fn" > \
158 | # "${IMAGE_CACHE_PATH}" && exit 6
159 | # [ "$zip" ] && unzip -pP "" -- "${FILE_PATH}" "$fe" > \
160 | # "${IMAGE_CACHE_PATH}" && exit 6
161 | # [ "$rar" ] || [ "$zip" ] && rm -- "${IMAGE_CACHE_PATH}"
162 | # ;;
163 | esac
164 | }
165 |
166 | handle_mime() {
167 | local mimetype="${1}"
168 | case "${mimetype}" in
169 | # Text
170 | text/* | */xml)
171 | # Syntax highlight
172 | if [[ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then
173 | exit 2
174 | fi
175 | if [[ "$( tput colors )" -ge 256 ]]; then
176 | local pygmentize_format='terminal256'
177 | local highlight_format='xterm256'
178 | else
179 | local pygmentize_format='terminal'
180 | local highlight_format='ansi'
181 | fi
182 | highlight --replace-tabs="${HIGHLIGHT_TABWIDTH}" --out-format="${highlight_format}" \
183 | --style="${HIGHLIGHT_STYLE}" --force -- "${FILE_PATH}" && exit 5
184 | # pygmentize -f "${pygmentize_format}" -O "style=${PYGMENTIZE_STYLE}" -- "${FILE_PATH}" && exit 5
185 | exit 2;;
186 |
187 | # Image
188 | image/*)
189 | # Preview as text conversion
190 | # img2txt --gamma=0.6 --width="${PV_WIDTH}" -- "${FILE_PATH}" && exit 4
191 | exiftool "${FILE_PATH}" && exit 5
192 | exit 1;;
193 |
194 | # Video and audio
195 | video/* | audio/*)
196 | mediainfo "${FILE_PATH}" && exit 5
197 | exiftool "${FILE_PATH}" && exit 5
198 | exit 1;;
199 | esac
200 | }
201 |
202 | handle_fallback() {
203 | echo '----- File Type Classification -----' && file --dereference --brief -- "${FILE_PATH}" && exit 5
204 | exit 1
205 | }
206 |
207 |
208 | MIMETYPE="$( file --dereference --brief --mime-type -- "${FILE_PATH}" )"
209 | if [[ "${PV_IMAGE_ENABLED}" == 'True' ]]; then
210 | handle_image "${MIMETYPE}"
211 | fi
212 | handle_extension
213 | handle_mime "${MIMETYPE}"
214 | handle_fallback
215 |
216 | exit 1
217 |
--------------------------------------------------------------------------------
/old_rice/.config/termite/config:
--------------------------------------------------------------------------------
1 | [options]
2 | allow_bold = true
3 | # font = IBM 3270 14
4 | font = monofur 15
5 | # font = VT323 15
6 |
7 | # YoRHa
8 | [colors]
9 | background = #f2e5bc
10 | foreground = #3c3836
11 | foreground_bold = #3c3836
12 |
13 | # light0 + gray
14 | color0 = #fbf1c7
15 | color8 = #928374
16 |
17 | # neutral_red + faded_red
18 | color1 = #cc241d
19 | color9 = #9d0006
20 |
21 | # neutral_green + faded_green
22 | color2 = #98971a
23 | color10 = #79740e
24 |
25 | # neutral_yellow + faded_yellow
26 | color3 = #d79921
27 | color11 = #b57614
28 |
29 | # neutral_blue + faded_blue
30 | color4 = #458588
31 | color12 = #076678
32 |
33 | # neutral_purple + faded_purple
34 | color5 = #b16286
35 | color13 = #8f3f71
36 |
37 | # neutral_aqua + faded_aqua
38 | color6 = #689d6a
39 | color14 = #427b58
40 |
41 | # dark4 + dark1
42 | color7 = #7c6f64
43 | color15 = #3c3836
44 |
45 | # Palenight
46 | # [colors]
47 | #
48 | # # special
49 | # foreground = #eceff1
50 | # foreground_bold = #eceff1
51 | # cursor = #eceff1
52 | # background = #292d3e
53 | #
54 | # # black
55 | # color0 = #546e7a
56 | # color8 = #546e7a
57 | #
58 | # # red
59 | # color1 = #ff5370
60 | # color9 = #ff5370
61 | #
62 | # # green
63 | # color2 = #c3e88d
64 | # color10 = #c3e88d
65 | #
66 | # # yellow
67 | # color3 = #ffcb6b
68 | # color11 = #ffcb6b
69 | #
70 | # # blue
71 | # color4 = #82aaff
72 | # color12 = #82aaff
73 | #
74 | # # magenta
75 | # color5 = #c792ea
76 | # color13 = #c792ea
77 | #
78 | # # cyan
79 | # color6 = #89ddff
80 | # color14 = #89ddff
81 | #
82 | # # white
83 | # color7 = #ffffff
84 | # color15 = #ffffff
85 | #
86 |
--------------------------------------------------------------------------------
/old_rice/.config/vis/colors/dracula:
--------------------------------------------------------------------------------
1 | #f8f8f2
2 | #282a36
3 | #000000
4 | #4d4d4d
5 | #ff5555
6 | #ff6e67
7 | #50fa7b
8 | #5af78e
9 | #f1fa8c
10 | #f4f99d
11 | #bd93f9
12 | #caa9fa
13 | #ff79c6
14 | #ff92d0
15 | #8be9fd
16 | #9aedfe
17 | #bfbfbf
18 | #e6e6e6
19 |
20 |
--------------------------------------------------------------------------------
/old_rice/.config/vis/colors/gruvbox:
--------------------------------------------------------------------------------
1 | #f2e5bc
2 | #7c6f64
3 | #928374
4 | #3c3836
5 | #cc241d
6 | #9d0006
7 | #98971a
8 | #79740e
9 | #d79921
10 | #b57614
11 | #458588
12 | #076678
13 | #b16286
14 | #8f3f71
15 | #689d6a
16 | #427b58
17 |
--------------------------------------------------------------------------------
/old_rice/.config/vis/colors/material:
--------------------------------------------------------------------------------
1 | #eceff1
2 | #292d3e
3 | #546e7a
4 | #ff5370
5 | #c3e88d
6 | #ffcb6b
7 | #82aaff
8 | #c792ea
9 | #89ddff
10 | #ffffff
11 |
12 |
--------------------------------------------------------------------------------
/old_rice/.config/vis/colors/rei:
--------------------------------------------------------------------------------
1 | #2a2e38
2 | #6d7b8b
3 | #d08785
4 | #fdf8ce
5 | #f8cc7d
6 | #6f98b3
7 | #fcdbd9
8 | #04f0f1
9 | #f0fdff
10 |
--------------------------------------------------------------------------------
/old_rice/.config/vis/config:
--------------------------------------------------------------------------------
1 | colors.scheme=gruvbox
2 | visualizer.spectrum.bar.width=2
3 | visualizer.spectrum.bar.spacing=1
4 |
--------------------------------------------------------------------------------
/old_rice/.config/vis/vis.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ameyrk99/dwm_rice/ecea6af2ca410dea8f5d4a2d98bbf1c9e93c4fc5/old_rice/.config/vis/vis.log
--------------------------------------------------------------------------------
/old_rice/.config/zathura/zathurarc:
--------------------------------------------------------------------------------
1 | # Disable statusbar. Default is "s"
2 | set guioptions ""
3 | # Show a tilde instead of the full home path
4 | set statusbar-home-tilde "true"
5 | set statusbar-h-padding 0
6 | set statusbar-v-padding 0
7 | set page-padding 2
8 | set selection-clipboard clipboard
9 | map K zoom in
10 | map J zoom out
11 | map u scroll half-up
12 | map d scroll half-down
13 | map D toggle_page_mode
14 | set recolor true
15 | set default-bg "#292d3e"
16 | set default-fg "#eceff1"
17 | set statusbar-bg "#292d3e"
18 | set statusbar-fg "#eceff1"
19 | set recolor-darkcolor "#eceff1"
20 | set recolor-lightcolor "#292d3e"
21 |
--------------------------------------------------------------------------------
/old_rice/.gitignore:
--------------------------------------------------------------------------------
1 | */*
2 |
3 | !guides/*
4 | !scripts/*
5 | !wallpapers/*
6 | !.vim/*
7 | !.config/*
8 | !.fonts/*
9 |
10 | !.vim/bundle/vim_modules.sh
11 |
12 | !dwm/config.h
13 | !dwm/patches/
14 | !slock/config.h
15 | !slstatus/config.h
16 | !st/config.h
17 |
--------------------------------------------------------------------------------
/old_rice/.vim/.netrwhist:
--------------------------------------------------------------------------------
1 | let g:netrw_dirhistmax =10
2 | let g:netrw_dirhist_cnt =9
3 | let g:netrw_dirhist_1='/home/mark/.config/zathura/zathura'
4 | let g:netrw_dirhist_2='/usr/share/dbus-1/services'
5 | let g:netrw_dirhist_3='/home/mark/Code/go/src/github.com/ameyrk99/gophercises_quiz'
6 | let g:netrw_dirhist_4='/home/mark/Code/go/src/github.com/ameyrk99/goexp/_examples'
7 | let g:netrw_dirhist_5='/home/mark/Code/go/src/github.com/ameyrk99/sony_screensaver'
8 | let g:netrw_dirhist_6='/home/mark/Code/go/src/github.com/ameyrk99/goexp'
9 | let g:netrw_dirhist_7='/home/mark/Code/go/src/github.com/ameyrk99/the_game'
10 | let g:netrw_dirhist_8='/home/mark/Code/go/src/github.com/ameyrk99/gophercises_quiz'
11 | let g:netrw_dirhist_9='/home/mark/.dwm/scripts'
12 |
--------------------------------------------------------------------------------
/old_rice/.vim/.ycm_extra_conf.py:
--------------------------------------------------------------------------------
1 | # Partially stolen from https://bitbucket.org/mblum/libgp/src/2537ea7329ef/.ycm_extra_conf.py
2 | import os
3 | import ycm_core
4 |
5 | # These are the compilation flags that will be used in case there's no
6 | # compilation database set (by default, one is not set).
7 | # CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR.
8 | flags = [
9 | '-Wall',
10 | '-Wextra',
11 | '-Werror',
12 | '-Wno-long-long',
13 | '-Wno-variadic-macros',
14 | '-fexceptions',
15 | # THIS IS IMPORTANT! Without a "-std=" flag, clang won't know which
16 | # language to use when compiling headers. So it will guess. Badly. So C++
17 | # headers will be compiled as C headers. You don't want that so ALWAYS specify
18 | # a "-std=".
19 | # For a C project, you would set this to something like 'c99' instead of
20 | # 'c++11'.
21 | '-std=c++14',
22 | # ...and the same thing goes for the magic -x option which specifies the
23 | # language that the files to be compiled are written in. This is mostly
24 | # relevant for c++ headers.
25 | # For a C project, you would set this to 'c' instead of 'c++'.
26 | '-x', 'c++',
27 | # This path will only work on OS X, but extra paths that don't exist are not
28 | # harmful
29 | '-isystem', '/System/Library/Frameworks/Python.framework/Headers',
30 | '-isystem', '/usr/local/include',
31 | '-isystem', '/usr/local/include/eigen3',
32 | '-I', 'include',
33 | '-I.',
34 | ]
35 |
36 | # Set this to the absolute path to the folder (NOT the file!) containing the
37 | # compile_commands.json file to use that instead of 'flags'. See here for
38 | # more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
39 | #
40 | # Most projects will NOT need to set this to anything; you can just change the
41 | # 'flags' list of compilation flags. Notice that YCM itself uses that approach.
42 | compilation_database_folder = ''
43 |
44 | if compilation_database_folder:
45 | database = ycm_core.CompilationDatabase( compilation_database_folder )
46 | else:
47 | database = None
48 |
49 |
50 | def DirectoryOfThisScript():
51 | return os.path.dirname( os.path.abspath( __file__ ) )
52 |
53 |
54 | def MakeRelativePathsInFlagsAbsolute( flags, working_directory ):
55 | if not working_directory:
56 | return list( flags )
57 | new_flags = []
58 | make_next_absolute = False
59 | path_flags = [ '-isystem', '-I', '-iquote', '--sysroot=' ]
60 | for flag in flags:
61 | new_flag = flag
62 |
63 | if make_next_absolute:
64 | make_next_absolute = False
65 | if not flag.startswith( '/' ):
66 | new_flag = os.path.join( working_directory, flag )
67 |
68 | for path_flag in path_flags:
69 | if flag == path_flag:
70 | make_next_absolute = True
71 | break
72 |
73 | if flag.startswith( path_flag ):
74 | path = flag[ len( path_flag ): ]
75 | new_flag = path_flag + os.path.join( working_directory, path )
76 | break
77 |
78 | if new_flag:
79 | new_flags.append( new_flag )
80 | return new_flags
81 |
82 |
83 | def FlagsForFile( filename ):
84 | if database:
85 | # Bear in mind that compilation_info.compiler_flags_ does NOT return a
86 | # python list, but a "list-like" StringVec object
87 | compilation_info = database.GetCompilationInfoForFile( filename )
88 | final_flags = MakeRelativePathsInFlagsAbsolute(
89 | compilation_info.compiler_flags_,
90 | compilation_info.compiler_working_dir_ )
91 | else:
92 | # relative_to = DirectoryOfThisScript()
93 | relative_to = os.path.dirname(os.path.abspath(filename))
94 | final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
95 |
96 | return {
97 | 'flags': final_flags,
98 | 'do_cache': True
99 | }
100 |
101 |
--------------------------------------------------------------------------------
/old_rice/.vim/autoload/pathogen.vim:
--------------------------------------------------------------------------------
1 | " pathogen.vim - path option manipulation
2 | " Maintainer: Tim Pope
3 | " Version: 2.4
4 |
5 | " Install in ~/.vim/autoload (or ~\vimfiles\autoload).
6 | "
7 | " For management of individually installed plugins in ~/.vim/bundle (or
8 | " ~\vimfiles\bundle), adding `execute pathogen#infect()` to the top of your
9 | " .vimrc is the only other setup necessary.
10 | "
11 | " The API is documented inline below.
12 |
13 | if exists("g:loaded_pathogen") || &cp
14 | finish
15 | endif
16 | let g:loaded_pathogen = 1
17 |
18 | " Point of entry for basic default usage. Give a relative path to invoke
19 | " pathogen#interpose() or an absolute path to invoke pathogen#surround().
20 | " Curly braces are expanded with pathogen#expand(): "bundle/{}" finds all
21 | " subdirectories inside "bundle" inside all directories in the runtime path.
22 | " If no arguments are given, defaults "bundle/{}", and also "pack/{}/start/{}"
23 | " on versions of Vim without native package support.
24 | function! pathogen#infect(...) abort
25 | if a:0
26 | let paths = filter(reverse(copy(a:000)), 'type(v:val) == type("")')
27 | else
28 | let paths = ['bundle/{}', 'pack/{}/start/{}']
29 | endif
30 | if has('packages')
31 | call filter(paths, 'v:val !~# "^pack/[^/]*/start/[^/]*$"')
32 | endif
33 | let static = '^\%([$~\\/]\|\w:[\\/]\)[^{}*]*$'
34 | for path in filter(copy(paths), 'v:val =~# static')
35 | call pathogen#surround(path)
36 | endfor
37 | for path in filter(copy(paths), 'v:val !~# static')
38 | if path =~# '^\%([$~\\/]\|\w:[\\/]\)'
39 | call pathogen#surround(path)
40 | else
41 | call pathogen#interpose(path)
42 | endif
43 | endfor
44 | call pathogen#cycle_filetype()
45 | if pathogen#is_disabled($MYVIMRC)
46 | return 'finish'
47 | endif
48 | return ''
49 | endfunction
50 |
51 | " Split a path into a list.
52 | function! pathogen#split(path) abort
53 | if type(a:path) == type([]) | return a:path | endif
54 | if empty(a:path) | return [] | endif
55 | let split = split(a:path,'\\\@]','\\&','')
250 | endif
251 | endfunction
252 |
253 | " Like findfile(), but hardcoded to use the runtimepath.
254 | function! pathogen#runtime_findfile(file,count) abort
255 | let rtp = pathogen#join(1,pathogen#split(&rtp))
256 | let file = findfile(a:file,rtp,a:count)
257 | if file ==# ''
258 | return ''
259 | else
260 | return fnamemodify(file,':p')
261 | endif
262 | endfunction
263 |
264 | " vim:set et sw=2 foldmethod=expr foldexpr=getline(v\:lnum)=~'^\"\ Section\:'?'>1'\:getline(v\:lnum)=~#'^fu'?'a1'\:getline(v\:lnum)=~#'^endf'?'s1'\:'=':
265 |
--------------------------------------------------------------------------------
/old_rice/.vim/bundle/vim_modules.sh:
--------------------------------------------------------------------------------
1 | git clone https://github.com/w0rp/ale.git
2 | git clone https://github.com/jiangmiao/auto-pairs.git
3 | git clone https://github.com/lilydjwg/colorizer.git
4 | git clone https://github.com/junegunn/goyo.vim.git
5 | git clone https://github.com/Yggdroot/indentLine.git
6 | git clone https://github.com/itchyny/lightline.vim.git
7 | git clone https://github.com/kaicataldo/material.vim.git
8 | git clone https://github.com/scrooloose/nerdcommenter.git
9 | git clone https://github.com/tmhedberg/SimpylFold.git
10 | git clone https://github.com/ervandew/supertab.git
11 | git clone https://github.com/vim-syntastic/syntastic.git
12 | git clone https://github.com/godlygeek/tabular.git
13 | git clone https://github.com/airblade/vim-gitgutter.git
14 | git clone https://github.com/terryma/vim-multiple-cursors.git
15 | git clone https://github.com/mhinz/vim-startify.git
16 | git clone https://github.com/Valloric/YouCompleteMe.git
17 | git clone https://github.com/fatih/vim-go.git
18 | git clone https://github.com/scrooloose/nerdtree.git
19 |
--------------------------------------------------------------------------------
/old_rice/.vim/colors/2Bcolors.vim:
--------------------------------------------------------------------------------
1 | " Special
2 | let wallpaper = "/home/mark/Downloads/purge/wallhaven-242480.jpg"
3 | let background = "#111114"
4 | let foreground = "#e0e0e2"
5 | let cursor = "#e0e0e2"
6 |
7 | " Colors
8 | let color0 = "#111114"
9 | let color1 = "#636974"
10 | let color2 = "#A97774"
11 | let color3 = "#727986"
12 | let color4 = "#7B8493"
13 | let color5 = "#969AA5"
14 | let color6 = "#BAB8C2"
15 | let color7 = "#e0e0e2"
16 | let color8 = "#9c9c9e"
17 | let color9 = "#636974"
18 | let color10 = "#A97774"
19 | let color11 = "#727986"
20 | let color12 = "#7B8493"
21 | let color13 = "#969AA5"
22 | let color14 = "#BAB8C2"
23 | let color15 = "#e0e0e2"
24 |
--------------------------------------------------------------------------------
/old_rice/.vim/colors/alabaster.vim:
--------------------------------------------------------------------------------
1 | " Vim colorscheme
2 | " Author: Alexander Gudulin
3 | " Maintainer: Alexander Gudulin
4 | " Notes: Based on Alabaster BG theme by Nikita Prokopov https://github.com/tonsky/sublime-scheme-alabaster/
5 |
6 | set background=light
7 |
8 | highlight clear
9 | if exists("syntax_on")
10 | syntax reset
11 | endif
12 | let g:colors_name="alabaster"
13 |
14 | "----------------------------------------------------------
15 | " -- local -- vim -- iterm2 -- tonsky |
16 | "----------------------------------------------------------
17 | let s:none = "none"
18 | let s:black = "black" " normal black -- #000000
19 | let s:white = "white" " bright white -- #ffffff
20 | let s:magenta = "magenta" " bright magenta -- #f9e0ff
21 | let s:yellow = "yellow" " bright yellow -- #fffabc
22 | let s:red = "darkred" " normal red -- #ffe0e0
23 | let s:orange = "red" " bright red -- #ffbc5d
24 | let s:blue = "blue" " bright blue -- #dbf1ff
25 | let s:cyan = "cyan" " bright cyan -- #dbecb6
26 | let s:green = "green" " bright green -- #f1fadf
27 | let s:darkgreen = "darkgreen" " normal green -- #dbecb6
28 |
29 | " --------------------------------
30 | " Editor settings
31 | " --------------------------------
32 | exe "hi! Normal" "ctermfg=".s:black "ctermbg=".s:white "cterm=".s:none
33 | exe "hi! Cursor" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
34 | exe "hi! CursorLine" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
35 | exe "hi! LineNr" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
36 | exe "hi! CursorLineNR" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
37 |
38 | " -----------------
39 | " - Number column -
40 | " -----------------
41 | exe "hi! CursorColumn" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
42 | exe "hi! FoldColumn" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
43 | exe "hi! SignColumn" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
44 | exe "hi! Folded" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
45 |
46 | " -------------------------
47 | " - Window/Tab delimiters -
48 | " -------------------------
49 | exe "hi! VertSplit" "ctermfg=".s:none "ctermbg=".s:magenta "cterm=".s:none
50 | exe "hi! ColorColumn" "ctermfg=".s:none "ctermbg=".s:magenta "cterm=".s:none
51 | exe "hi! TabLine" "ctermfg=".s:none "ctermbg=".s:magenta "cterm=".s:none
52 | exe "hi! TabLineFill" "ctermfg=".s:none "ctermbg=".s:magenta "cterm=".s:none
53 | exe "hi! TabLineSel" "ctermfg=".s:none "ctermbg=".s:cyan "cterm=".s:none
54 |
55 | " -------------------------------
56 | " - File Navigation / Searching -
57 | " -------------------------------
58 | exe "hi! Directory" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
59 | exe "hi! Search" "ctermfg=".s:none "ctermbg=".s:orange "cterm=".s:none
60 | exe "hi! IncSearch" "ctermfg=".s:none "ctermbg=".s:orange "cterm=".s:none
61 |
62 | " -----------------
63 | " - Prompt/Status -
64 | " -----------------
65 | exe "hi! StatusLine" "ctermfg=".s:none "ctermbg=".s:magenta "cterm=".s:none
66 | exe "hi! StatusLineNC" "ctermfg=".s:none "ctermbg=".s:magenta "cterm=".s:none
67 | exe "hi! WildMenu" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
68 | exe "hi! Quesion" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
69 | exe "hi! Title" "ctermfg=".s:none "ctermbg=".s:magenta "cterm=".s:none
70 | exe "hi! ModeMsg" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
71 | exe "hi! MoreMsg" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
72 |
73 | " --------------
74 | " - Visual aid -
75 | " --------------
76 | exe "hi! MatchParen" "ctermfg=".s:none "ctermbg=".s:blue "cterm=".s:none
77 | exe "hi! Visual" "ctermfg=".s:none "ctermbg=".s:cyan "cterm=".s:none
78 | exe "hi! VisualNOS" "ctermfg=".s:none "ctermbg=".s:cyan "cterm=".s:none
79 | exe "hi! NonText" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
80 |
81 | exe "hi! Todo" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
82 | exe "hi! Underlined" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
83 | exe "hi! Error" "ctermfg=".s:black "ctermbg=".s:red "cterm=".s:none
84 | exe "hi! ErrorMsg" "ctermfg=".s:black "ctermbg=".s:red "cterm=".s:none
85 | exe "hi! WarningMsg" "ctermfg=".s:black "ctermbg=".s:yellow "cterm=".s:none
86 | exe "hi! Ignore" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
87 | exe "hi! SpecialKey" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
88 |
89 | " --------------------------------
90 | " Variable types
91 | " --------------------------------
92 | exe "hi! Constant" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
93 | exe "hi! String" "ctermfg=".s:none "ctermbg=".s:green "cterm=".s:none
94 | exe "hi! StringDelimiter" "ctermfg=".s:none "ctermbg=".s:green "cterm=".s:none
95 | exe "hi! Character" "ctermfg=".s:none "ctermbg=".s:magenta "cterm=".s:none
96 | exe "hi! Number" "ctermfg=".s:none "ctermbg=".s:magenta "cterm=".s:none
97 | exe "hi! Boolean" "ctermfg=".s:none "ctermbg=".s:magenta "cterm=".s:none
98 | exe "hi! Float" "ctermfg=".s:none "ctermbg=".s:magenta "cterm=".s:none
99 |
100 | exe "hi! Identifier" "ctermfg=".s:none "ctermbg=".s:blue "cterm=".s:none
101 | exe "hi! Function" "ctermfg=".s:none "ctermbg=".s:blue "cterm=".s:none
102 |
103 | exe "hi! jsVariableDef" "ctermfg=".s:none "ctermbg=".s:blue "cterm=".s:none
104 |
105 | " --------------------------------
106 | " Language constructs
107 | " --------------------------------
108 | exe "hi! Statement" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
109 | exe "hi! Conditional" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
110 | exe "hi! Repeat" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
111 | exe "hi! Label" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
112 | exe "hi! Operator" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
113 | exe "hi! Keyword" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
114 | exe "hi! Exception" "ctermfg=".s:none "ctermbg=".s:red "cterm=".s:none
115 | exe "hi! Comment" "ctermfg=".s:none "ctermbg=".s:yellow "cterm=".s:none
116 |
117 | exe "hi! Special" "ctermfg=".s:none "ctermbg=".s:darkgreen "cterm=".s:none
118 | exe "hi! SpecialChar" "ctermfg=".s:none "ctermbg=".s:darkgreen "cterm=".s:none
119 | exe "hi! Tag" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
120 | exe "hi! Delimiter" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
121 | exe "hi! SpecialComment" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
122 | exe "hi! Debug" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
123 |
124 | " ----------
125 | " - C like -
126 | " ----------
127 | exe "hi! PreProc" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
128 | exe "hi! Include" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
129 | exe "hi! Define" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
130 | exe "hi! Macro" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
131 | exe "hi! PreCondit" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
132 |
133 | exe "hi! Type" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
134 | exe "hi! StorageClass" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
135 | exe "hi! Structure" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
136 | exe "hi! Typedef" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
137 |
138 | " --------------------------------
139 | " Diff
140 | " --------------------------------
141 | exe "hi! DiffAdd" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
142 | exe "hi! DiffChange" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
143 | exe "hi! DiffDelete" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
144 | exe "hi! DiffText" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
145 |
146 | " --------------------------------
147 | " Completion menu
148 | " --------------------------------
149 | exe "hi! Pmenu" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
150 | exe "hi! PmenuSel" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
151 | exe "hi! PmenuSbar" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
152 | exe "hi! PmenuThumb" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
153 |
154 | " --------------------------------
155 | " Spelling
156 | " --------------------------------
157 | exe "hi! SpellBad" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
158 | exe "hi! SpellCap" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
159 | exe "hi! SpellLocal" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
160 | exe "hi! SpellRare" "ctermfg=".s:none "ctermbg=".s:none "cterm=".s:none
--------------------------------------------------------------------------------
/old_rice/.vim/colors/codeschool.vim:
--------------------------------------------------------------------------------
1 | " Vim color file
2 | " Converted from my Textmate Code School theme using Coloration
3 | " http://astonj.com
4 |
5 | set background=dark
6 | highlight clear
7 |
8 | if exists("syntax_on")
9 | syntax reset
10 | endif
11 |
12 | let g:colors_name = "codeschool"
13 |
14 | hi Cursor ctermfg=16 ctermbg=145 cterm=NONE guifg=#182227 guibg=#9ea7a6 gui=NONE
15 | hi Visual ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#3f4b52 gui=NONE
16 | hi CursorLine ctermfg=NONE ctermbg=23 cterm=NONE guifg=NONE guibg=#2e373b gui=NONE
17 | hi CursorColumn ctermfg=NONE ctermbg=23 cterm=NONE guifg=NONE guibg=#2e373b gui=NONE
18 | hi ColorColumn ctermfg=NONE ctermbg=23 cterm=NONE guifg=NONE guibg=#2e373b gui=NONE
19 | hi LineNr ctermfg=102 ctermbg=23 cterm=NONE guifg=#84898c guibg=#2a343a gui=NONE
20 | hi VertSplit ctermfg=59 ctermbg=59 cterm=NONE guifg=#252c31 guibg=#252c31 gui=NONE
21 | hi MatchParen ctermfg=180 ctermbg=NONE cterm=underline guifg=#dda790 guibg=NONE gui=underline
22 | hi StatusLine ctermfg=231 ctermbg=59 cterm=bold guifg=#f0f0f0 guibg=#575e61 gui=bold
23 | hi StatusLineNC ctermfg=231 ctermbg=59 cterm=NONE guifg=#f0f0f0 guibg=#575e61 gui=NONE
24 | hi Pmenu ctermfg=153 ctermbg=NONE cterm=NONE guifg=#bcdbff guibg=NONE gui=NONE
25 | hi PmenuSel ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#3f4b52 gui=NONE
26 | hi IncSearch ctermfg=16 ctermbg=107 cterm=NONE guifg=#182227 guibg=#8bb664 gui=NONE
27 | hi Search ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
28 | hi Directory ctermfg=68 ctermbg=NONE cterm=NONE guifg=#3c98d9 guibg=NONE gui=NONE
29 | hi Folded ctermfg=247 ctermbg=16 cterm=NONE guifg=#9a9a9a guibg=#182227 gui=NONE
30 |
31 | hi Normal ctermfg=231 ctermbg=16 cterm=NONE guifg=#f0f0f0 guibg=#252c31 gui=NONE
32 | hi Boolean ctermfg=68 ctermbg=NONE cterm=NONE guifg=#3c98d9 guibg=NONE gui=NONE
33 | hi Character ctermfg=68 ctermbg=NONE cterm=NONE guifg=#3c98d9 guibg=NONE gui=NONE
34 | hi Comment ctermfg=247 ctermbg=NONE cterm=NONE guifg=#9a9a9a guibg=NONE gui=italic
35 | hi Conditional ctermfg=180 ctermbg=NONE cterm=NONE guifg=#dda790 guibg=NONE gui=NONE
36 | hi Constant ctermfg=68 ctermbg=NONE cterm=NONE guifg=#3c98d9 guibg=NONE gui=NONE
37 | hi Define ctermfg=180 ctermbg=NONE cterm=NONE guifg=#dda790 guibg=NONE gui=NONE
38 | hi DiffAdd ctermfg=231 ctermbg=64 cterm=bold guifg=#f0f0f0 guibg=#43820d gui=bold
39 | hi DiffDelete ctermfg=88 ctermbg=NONE cterm=NONE guifg=#880708 guibg=NONE gui=NONE
40 | hi DiffChange ctermfg=231 ctermbg=23 cterm=NONE guifg=#f0f0f0 guibg=#1c3657 gui=NONE
41 | hi DiffText ctermfg=231 ctermbg=24 cterm=bold guifg=#f0f0f0 guibg=#204a87 gui=bold
42 | hi ErrorMsg ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
43 | hi WarningMsg ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
44 | hi Float ctermfg=68 ctermbg=NONE cterm=NONE guifg=#3c98d9 guibg=NONE gui=NONE
45 | hi Function ctermfg=153 ctermbg=NONE cterm=NONE guifg=#bcdbff guibg=NONE gui=NONE
46 | hi Identifier ctermfg=113 ctermbg=NONE cterm=NONE guifg=#99cf50 guibg=NONE gui=NONE
47 | hi Keyword ctermfg=180 ctermbg=NONE cterm=NONE guifg=#dda790 guibg=NONE gui=NONE
48 | hi Label ctermfg=107 ctermbg=NONE cterm=NONE guifg=#8bb664 guibg=NONE gui=NONE
49 | hi NonText ctermfg=59 ctermbg=17 cterm=NONE guifg=#414e58 guibg=#232c31 gui=NONE
50 | hi Number ctermfg=68 ctermbg=NONE cterm=NONE guifg=#3c98d9 guibg=NONE gui=NONE
51 | hi Operator ctermfg=180 ctermbg=NONE cterm=NONE guifg=#dda790 guibg=NONE gui=NONE
52 | hi PreProc ctermfg=180 ctermbg=NONE cterm=NONE guifg=#dda790 guibg=NONE gui=NONE
53 | hi Special ctermfg=231 ctermbg=NONE cterm=NONE guifg=#f0f0f0 guibg=NONE gui=NONE
54 | hi SpecialKey ctermfg=59 ctermbg=23 cterm=NONE guifg=#414e58 guibg=#252c31 gui=NONE
55 | hi Statement ctermfg=180 ctermbg=NONE cterm=NONE guifg=#dda790 guibg=NONE gui=NONE
56 | hi StorageClass ctermfg=113 ctermbg=NONE cterm=NONE guifg=#99cf50 guibg=NONE gui=NONE
57 | hi String ctermfg=107 ctermbg=NONE cterm=NONE guifg=#8bb664 guibg=NONE gui=NONE
58 | hi Tag ctermfg=153 ctermbg=NONE cterm=NONE guifg=#bcdbff guibg=NONE gui=NONE
59 | hi Title ctermfg=231 ctermbg=NONE cterm=bold guifg=#f0f0f0 guibg=NONE gui=bold
60 | hi Todo ctermfg=247 ctermbg=NONE cterm=inverse,bold guifg=#9a9a9a guibg=NONE gui=inverse,bold,italic
61 | hi Type ctermfg=153 ctermbg=NONE cterm=NONE guifg=#b5d8f6 guibg=NONE gui=NONE
62 | hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
63 | hi rubyClass ctermfg=180 ctermbg=NONE cterm=NONE guifg=#dda790 guibg=NONE gui=NONE
64 | hi rubyFunction ctermfg=153 ctermbg=NONE cterm=NONE guifg=#bcdbff guibg=NONE gui=NONE
65 | hi rubyInterpolationDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
66 | hi rubySymbol ctermfg=68 ctermbg=NONE cterm=NONE guifg=#3c98d9 guibg=NONE gui=NONE
67 | hi rubyConstant ctermfg=146 ctermbg=NONE cterm=NONE guifg=#bfabcb guibg=NONE gui=NONE
68 | hi rubyStringDelimiter ctermfg=107 ctermbg=NONE cterm=NONE guifg=#8bb664 guibg=NONE gui=NONE
69 | hi rubyBlockParameter ctermfg=74 ctermbg=NONE cterm=NONE guifg=#68a9eb guibg=NONE gui=NONE
70 | hi rubyInstanceVariable ctermfg=74 ctermbg=NONE cterm=NONE guifg=#68a9eb guibg=NONE gui=NONE
71 | hi rubyInclude ctermfg=180 ctermbg=NONE cterm=NONE guifg=#dda790 guibg=NONE gui=NONE
72 | hi rubyGlobalVariable ctermfg=74 ctermbg=NONE cterm=NONE guifg=#68a9eb guibg=NONE gui=NONE
73 | hi rubyRegexp ctermfg=179 ctermbg=NONE cterm=NONE guifg=#e9c062 guibg=NONE gui=NONE
74 | hi rubyRegexpDelimiter ctermfg=179 ctermbg=NONE cterm=NONE guifg=#e9c062 guibg=NONE gui=NONE
75 | hi rubyEscape ctermfg=68 ctermbg=NONE cterm=NONE guifg=#3c98d9 guibg=NONE gui=NONE
76 | hi rubyControl ctermfg=180 ctermbg=NONE cterm=NONE guifg=#dda790 guibg=NONE gui=NONE
77 | hi rubyClassVariable ctermfg=74 ctermbg=NONE cterm=NONE guifg=#68a9eb guibg=NONE gui=NONE
78 | hi rubyOperator ctermfg=180 ctermbg=NONE cterm=NONE guifg=#dda790 guibg=NONE gui=NONE
79 | hi rubyException ctermfg=180 ctermbg=NONE cterm=NONE guifg=#dda790 guibg=NONE gui=NONE
80 | hi rubyPseudoVariable ctermfg=74 ctermbg=NONE cterm=NONE guifg=#68a9eb guibg=NONE gui=NONE
81 | hi rubyRailsUserClass ctermfg=146 ctermbg=NONE cterm=NONE guifg=#bfabcb guibg=NONE gui=NONE
82 | hi rubyRailsARAssociationMethod ctermfg=186 ctermbg=NONE cterm=NONE guifg=#dad085 guibg=NONE gui=NONE
83 | hi rubyRailsARMethod ctermfg=186 ctermbg=NONE cterm=NONE guifg=#dad085 guibg=NONE gui=NONE
84 | hi rubyRailsRenderMethod ctermfg=186 ctermbg=NONE cterm=NONE guifg=#dad085 guibg=NONE gui=NONE
85 | hi rubyRailsMethod ctermfg=186 ctermbg=NONE cterm=NONE guifg=#dad085 guibg=NONE gui=NONE
86 | hi erubyDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
87 | hi erubyComment ctermfg=247 ctermbg=NONE cterm=NONE guifg=#9a9a9a guibg=NONE gui=italic
88 | hi erubyRailsMethod ctermfg=186 ctermbg=NONE cterm=NONE guifg=#dad085 guibg=NONE gui=NONE
89 | hi htmlTag ctermfg=111 ctermbg=NONE cterm=NONE guifg=#89bdff guibg=NONE gui=NONE
90 | hi htmlEndTag ctermfg=111 ctermbg=NONE cterm=NONE guifg=#89bdff guibg=NONE gui=NONE
91 | hi htmlTagName ctermfg=111 ctermbg=NONE cterm=NONE guifg=#89bdff guibg=NONE gui=NONE
92 | hi htmlArg ctermfg=111 ctermbg=NONE cterm=NONE guifg=#89bdff guibg=NONE gui=NONE
93 | hi htmlSpecialChar ctermfg=68 ctermbg=NONE cterm=NONE guifg=#3c98d9 guibg=NONE gui=NONE
94 | hi javaScriptFunction ctermfg=113 ctermbg=NONE cterm=NONE guifg=#99cf50 guibg=NONE gui=NONE
95 | hi javaScriptRailsFunction ctermfg=186 ctermbg=NONE cterm=NONE guifg=#dad085 guibg=NONE gui=NONE
96 | hi javaScriptBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
97 | hi yamlKey ctermfg=153 ctermbg=NONE cterm=NONE guifg=#bcdbff guibg=NONE gui=NONE
98 | hi yamlAnchor ctermfg=74 ctermbg=NONE cterm=NONE guifg=#68a9eb guibg=NONE gui=NONE
99 | hi yamlAlias ctermfg=74 ctermbg=NONE cterm=NONE guifg=#68a9eb guibg=NONE gui=NONE
100 | hi yamlDocumentHeader ctermfg=107 ctermbg=NONE cterm=NONE guifg=#8bb664 guibg=NONE gui=NONE
101 | hi cssURL ctermfg=74 ctermbg=NONE cterm=NONE guifg=#68a9eb guibg=NONE gui=NONE
102 | hi cssFunctionName ctermfg=186 ctermbg=NONE cterm=NONE guifg=#dad085 guibg=NONE gui=NONE
103 | hi cssColor ctermfg=68 ctermbg=NONE cterm=NONE guifg=#3c98d9 guibg=NONE gui=NONE
104 | hi cssPseudoClassId ctermfg=153 ctermbg=NONE cterm=NONE guifg=#bcdbff guibg=NONE gui=NONE
105 | hi cssClassName ctermfg=153 ctermbg=NONE cterm=NONE guifg=#bcdbff guibg=NONE gui=NONE
106 | hi cssValueLength ctermfg=68 ctermbg=NONE cterm=NONE guifg=#3c98d9 guibg=NONE gui=NONE
107 | hi cssCommonAttr ctermfg=151 ctermbg=NONE cterm=NONE guifg=#a7cfa3 guibg=NONE gui=NONE
108 | hi cssBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
109 |
--------------------------------------------------------------------------------
/old_rice/.vim/colors/forgotten-dark.vim:
--------------------------------------------------------------------------------
1 | " forgotten-dark, a vim colourscheme by nightsense
2 | "
3 | " generated with a theme template adapted from
4 | " base16-vim (https://github.com/chriskempson/base16-vim)
5 | " by Chris Kempson (http://chriskempson.com)
6 |
7 |
8 | "=== SET COLOUR VARIABLES =====================================================
9 |
10 | " GUI colours
11 | let s:g0 = '1d242b'
12 | let s:g1 = '2c333b'
13 | let s:g2 = '616b75'
14 | let s:g3 = '77808a'
15 | let s:g4 = '8b959e'
16 | let s:g5 = 'a3acb5'
17 | let s:g6 = 'dde6f0'
18 | let s:g7 = 'f0f8ff'
19 | let s:g8 = 'bf5858'
20 | let s:g9 = 'b56f45'
21 | let s:gA = 'ab8e38'
22 | let s:gB = '508a50'
23 | let s:gC = '458a8a'
24 | let s:gD = '557b9e'
25 | let s:gE = '8b6a9e'
26 | let s:gF = 'ab6a7a'
27 |
28 | " terminal colours
29 | let s:t0 = '00'
30 | let s:t3 = '08'
31 | let s:t5 = '07'
32 | let s:t7 = '15'
33 | let s:t8 = '01'
34 | let s:tA = '03'
35 | let s:tB = '02'
36 | let s:tC = '06'
37 | let s:tD = '04'
38 | let s:tE = '05'
39 | let s:t1 = '10'
40 | let s:t2 = '11'
41 | let s:t4 = '12'
42 | let s:t6 = '13'
43 | let s:t9 = '09'
44 | let s:tF = '14'
45 |
46 | " neovim colours
47 | if has('nvim')
48 | let g:terminal_color_0 = '#1d242b'
49 | let g:terminal_color_1 = '#bf5858'
50 | let g:terminal_color_2 = '#508a50'
51 | let g:terminal_color_3 = '#ab8e38'
52 | let g:terminal_color_4 = '#557b9e'
53 | let g:terminal_color_5 = '#8b6a9e'
54 | let g:terminal_color_6 = '#458a8a'
55 | let g:terminal_color_7 = '#a3acb5'
56 | let g:terminal_color_8 = '#77808a'
57 | let g:terminal_color_9 = '#b56f45'
58 | let g:terminal_color_10 = '#2c333b'
59 | let g:terminal_color_11 = '#616b75'
60 | let g:terminal_color_12 = '#8b959e'
61 | let g:terminal_color_13 = '#dde6f0'
62 | let g:terminal_color_14 = '#ab6a7a'
63 | let g:terminal_color_15 = '#f0f8ff'
64 | endif
65 |
66 |
67 | "=== OTHER PREPARATION ========================================================
68 |
69 | " run theme-setting script if using terminal vim
70 | if filereadable(expand('~/.nightshell/forgotten-dark'))
71 | if !has('gui_running')
72 | execute 'silent !/bin/sh $HOME/.nightshell/forgotten-dark'
73 | endif
74 | endif
75 |
76 | " clear old theme
77 | hi clear
78 | syntax reset
79 |
80 | " set new theme
81 | set background=dark
82 | augroup NightsenseThemeSet
83 | autocmd!
84 | autocmd CursorMoved * execute 'if !exists("colors_name") |
85 | \ colorscheme forgotten-dark | endif'
86 | augroup END
87 | let colors_name = 'forgotten-dark'
88 |
89 | " highlighting function
90 | fun! h(x, gf, gb, cf, cb, a, s)
91 | if a:gf != '' | exe 'hi ' . a:x . ' guifg=#' . a:gf | endif
92 | if a:gb != '' | exe 'hi ' . a:x . ' guibg=#' . a:gb | endif
93 | if a:cf != '' | exe 'hi ' . a:x . ' ctermfg=' . a:cf | endif
94 | if a:cb != '' | exe 'hi ' . a:x . ' ctermbg=' . a:cb | endif
95 | if a:a != '' | exe 'hi ' . a:x . ' gui=' . a:a . ' cterm=' . a:a | endif
96 | if a:s != '' | exe 'hi ' . a:x . ' guisp=#' . a:s | endif
97 | endfun
98 |
99 |
100 | "=== BASIC HIGHLIGHTING =======================================================
101 |
102 | " cursor + status line + selected tab
103 | cal h('Cursor' , s:g0 , s:g8 , s:t0 , s:t8 , 'none' , '' )
104 | cal h('StatusLine' , s:g0 , s:g8 , s:t0 , s:t8 , 'none' , '' )
105 | cal h('StatusLineTerm' , s:g0 , s:g8 , s:t0 , s:t8 , 'none' , '' )
106 | cal h('TabLineSel' , s:g0 , s:g8 , s:t0 , s:t8 , 'none' , '' )
107 | cal h('TermCursor' , s:g0 , s:g8 , s:t0 , s:t8 , 'none' , '' )
108 |
109 | " line numbers
110 | cal h('CursorLineNr' , s:g0 , s:g3 , s:t0 , s:t3 , 'none' , '' )
111 | cal h('LineNr' , s:g4 , s:g1 , s:t4 , s:t1 , 'none' , '' )
112 |
113 | " basic text
114 | cal h('Bold' , '' , '' , '' , '' , 'bold' , '' )
115 | cal h('Directory' , s:g5 , '' , s:t5 , '' , 'bold' , '' )
116 | cal h('Italic' , '' , '' , '' , '' , 'italic' , '' )
117 | cal h('Normal' , s:g5 , s:g0 , s:t5 , s:t0 , 'none' , '' )
118 | cal h('Underlined' , s:g5 , '' , s:t5 , '' , 'underline' , '' )
119 |
120 | " commented-out text
121 | cal h('Comment' , s:g3 , '' , s:t3 , '' , 'none' , '' )
122 | cal h('Conceal' , s:g3 , '' , s:t3 , '' , 'none' , '' )
123 | cal h('EndOfBuffer' , s:g3 , '' , s:t3 , '' , 'none' , '' )
124 | cal h('Ignore' , s:g3 , '' , s:t3 , '' , 'none' , '' )
125 | cal h('NonText' , s:g3 , '' , s:t3 , '' , 'none' , '' )
126 |
127 | " highlighted background
128 | cal h('ColorColumn' , '' , s:g1 , '' , s:t1 , 'none' , '' )
129 | cal h('CursorColumn' , '' , s:g1 , '' , s:t1 , 'none' , '' )
130 | cal h('CursorLine' , '' , s:g1 , '' , s:t1 , 'none' , '' )
131 | cal h('QuickFixLine' , '' , s:g1 , '' , s:t1 , 'none' , '' )
132 | cal h('StatusLineNC' , s:g5 , s:g1 , s:t5 , s:t1 , 'none' , '' )
133 | cal h('StatusLineTermNC' , s:g5 , s:g1 , s:t5 , s:t1 , 'none' , '' )
134 | cal h('TabLineFill' , '' , s:g1 , '' , s:t1 , 'none' , '' )
135 | cal h('TermCursorNC' , '' , s:g1 , '' , s:t1 , 'none' , '' )
136 |
137 | " muted text on highlighted background
138 | cal h('DiffChange' , s:g4 , s:g1 , s:t4 , s:t1 , 'none' , '' )
139 | cal h('FoldColumn' , s:g4 , s:g1 , s:t4 , s:t1 , 'none' , '' )
140 | cal h('Folded' , s:g4 , s:g1 , s:t4 , s:t1 , 'none' , '' )
141 | cal h('SignColumn' , s:g4 , s:g1 , s:t4 , s:t1 , 'none' , '' )
142 | cal h('TabLine' , s:g4 , s:g1 , s:t4 , s:t1 , 'none' , '' )
143 | cal h('VisualNOS' , s:g4 , s:g1 , s:t4 , s:t1 , 'none' , '' )
144 |
145 | " strongly highlighted background
146 | cal h('MatchParen' , s:g6 , s:g2 , s:t6 , s:t2 , 'none' , '' )
147 | cal h('Pmenu' , s:g6 , s:g2 , s:t6 , s:t2 , 'none' , '' )
148 | cal h('Visual' , s:g6 , s:g2 , s:t6 , s:t2 , 'none' , '' )
149 |
150 | " selected menu item
151 | cal h('PmenuSel' , s:g0 , s:g5 , s:t0 , s:t5 , 'none' , '' )
152 | cal h('WildMenu' , s:g0 , s:g6 , s:t0 , s:t6 , 'none' , '' )
153 |
154 | " solid lines
155 | cal h('PmenuSbar' , s:g1 , s:g1 , s:t1 , s:t1 , 'none' , '' )
156 | cal h('PmenuThumb' , s:g4 , s:g4 , s:t4 , s:t4 , 'none' , '' )
157 | cal h('VertSplit' , s:g2 , s:g2 , s:t2 , s:t2 , 'none' , '' )
158 |
159 |
160 | "=== ALERT/SYNTAX HIGHLIGHTING ================================================
161 |
162 | " RED for warning elements
163 | cal h('DiffDelete' , s:g8 , s:g0 , s:t8 , s:t0 , 'reverse' , '' )
164 | cal h('Error' , s:g8 , s:g0 , s:t8 , s:t0 , 'reverse' , '' )
165 | cal h('ErrorMsg' , s:g8 , s:g0 , s:t8 , s:t0 , 'none' , '' )
166 | cal h('SpellBad' , '' , '' , s:t0 , s:t8 , 'undercurl' , s:g8)
167 | cal h('TooLong' , s:g8 , '' , s:t8 , '' , 'none' , '' )
168 | cal h('WarningMsg' , s:g8 , s:g0 , s:t8 , s:t0 , 'none' , '' )
169 |
170 | " ORANGE for preliminary elements
171 | cal h('Define' , s:g9 , '' , s:t9 , '' , 'none' , '' )
172 | cal h('IncSearch' , s:g9 , s:g0 , s:t9 , s:t0 , 'reverse' , '' )
173 | cal h('Include' , s:g9 , '' , s:t9 , '' , 'none' , '' )
174 | cal h('Macro' , s:g9 , '' , s:t9 , '' , 'none' , '' )
175 | cal h('PreCondit' , s:g9 , '' , s:t9 , '' , 'none' , '' )
176 | cal h('PreProc' , s:g9 , '' , s:t9 , '' , 'none' , '' )
177 | cal h('SpellCap' , '' , '' , s:t0 , s:t9 , 'undercurl' , s:g9)
178 | cal h('Title' , s:g9 , '' , s:t9 , '' , 'none' , '' )
179 |
180 | " YELLOW for highlighted elements
181 | cal h('DiffText' , s:gA , s:g0 , s:tA , s:t0 , 'reverse' , '' )
182 | cal h('Search' , s:gA , s:g0 , s:tA , s:t0 , 'reverse' , '' )
183 | cal h('Todo' , s:gA , s:g0 , s:tA , s:t0 , 'reverse' , '' )
184 |
185 | " GREEN for action elements
186 | cal h('Conditional' , s:gB , '' , s:tB , '' , 'none' , '' )
187 | cal h('DiffAdd' , s:gB , s:g0 , s:tB , s:t0 , 'reverse' , '' )
188 | cal h('Exception' , s:gB , '' , s:tB , '' , 'none' , '' )
189 | cal h('Keyword' , s:gB , '' , s:tB , '' , 'none' , '' )
190 | cal h('Label' , s:gB , '' , s:tB , '' , 'none' , '' )
191 | cal h('ModeMsg' , s:gB , '' , s:tB , '' , 'none' , '' )
192 | cal h('MoreMsg' , s:gB , '' , s:tB , '' , 'none' , '' )
193 | cal h('Operator' , s:gB , '' , s:tB , '' , 'none' , '' )
194 | cal h('Question' , s:gB , '' , s:tB , '' , 'none' , '' )
195 | cal h('Repeat' , s:gB , '' , s:tB , '' , 'none' , '' )
196 | cal h('Statement' , s:gB , '' , s:tB , '' , 'none' , '' )
197 |
198 | " TEAL for object types
199 | cal h('SpellLocal' , '' , '' , s:t0 , s:tC , 'undercurl' , s:gC)
200 | cal h('StorageClass' , s:gC , '' , s:tC , '' , 'none' , '' )
201 | cal h('Structure' , s:gC , '' , s:tC , '' , 'none' , '' )
202 | cal h('Type' , s:gC , '' , s:tC , '' , 'none' , '' )
203 | cal h('Typedef' , s:gC , '' , s:tC , '' , 'none' , '' )
204 |
205 | " BLUE for constants
206 | cal h('Boolean' , s:gD , '' , s:tD , '' , 'none' , '' )
207 | cal h('Character' , s:gD , '' , s:tD , '' , 'none' , '' )
208 | cal h('Constant' , s:gD , '' , s:tD , '' , 'none' , '' )
209 | cal h('Float' , s:gD , '' , s:tD , '' , 'none' , '' )
210 | cal h('Number' , s:gD , '' , s:tD , '' , 'none' , '' )
211 | cal h('String' , s:gD , '' , s:tD , '' , 'none' , '' )
212 |
213 | " PURPLE for special text
214 | cal h('Debug' , s:gE , '' , s:tE , '' , 'none' , '' )
215 | cal h('Delimiter' , s:gE , '' , s:tE , '' , 'none' , '' )
216 | cal h('Special' , s:gE , '' , s:tE , '' , 'none' , '' )
217 | cal h('SpecialChar' , s:gE , '' , s:tE , '' , 'none' , '' )
218 | cal h('SpecialComment' , s:gE , '' , s:tE , '' , 'none' , '' )
219 | cal h('SpecialKey' , s:gE , '' , s:tE , '' , 'none' , '' )
220 | cal h('SpellRare' , '' , '' , s:t0 , s:tE , 'undercurl' , s:gE)
221 | cal h('Tag' , s:gE , '' , s:tE , '' , 'none' , '' )
222 |
223 | " PINK for object names
224 | cal h('Function' , s:gF , '' , s:tF , '' , 'none' , '' )
225 | cal h('Identifier' , s:gF , '' , s:tF , '' , 'none' , '' )
226 |
227 |
228 | "=== OPTIONS ==================================================================
229 |
230 | " disable highlighted CursorLineNr
231 | if exists('g:forgotten_dark_CursorLineNr')
232 | if g:forgotten_dark_CursorLineNr == 'off'
233 | cal h('CursorLineNr' , s:g4 , s:g1 , s:t4 , s:t1 , 'none' , '' )
234 | endif
235 | endif
236 |
237 | " disable LineNr background altogether
238 | if exists('g:forgotten_dark_LineNr')
239 | if g:forgotten_dark_LineNr == 'off'
240 | cal h('CursorLineNr' , s:g4 , s:g0 , s:t4 , s:t0 , 'none' , '' )
241 | cal h('LineNr' , s:g4 , s:g0 , s:t4 , s:t0 , 'none' , '' )
242 | endif
243 | endif
244 |
--------------------------------------------------------------------------------
/old_rice/.vim/vimty.vim:
--------------------------------------------------------------------------------
1 | function! Typewriter ()
2 | let a:cursor_pos = getpos(".")
3 | let g:cx = a:cursor_pos[2]
4 | let g:cy = a:cursor_pos[1]
5 | let g:topline = line("w0")
6 |
7 | " Screen size.
8 | let mx = system("xrandr -q --current | head -n2 | tail -n1 | cut --delimiter=' ' -f4 | cut --delimiter='x' -f1")
9 | let my = system("xrandr -q --current | head -n2 | tail -n1 | cut --delimiter=' ' -f4 | cut --delimiter='x' -f2 | cut --delimiter='+' -f1")
10 |
11 | " Current X window ID
12 | let curwin = system("xdotool getactivewindow | head -n1 | awk '{printf $0}'")
13 | " Current X window w,h
14 | let winwidth = system("xwininfo -id " . curwin . " | grep Width | xargs | cut --delimiter=' ' -f2")
15 | let winheight = system("xwininfo -id " . curwin . " | grep Height | xargs | cut --delimiter=' ' -f2")
16 |
17 | " Figuring out character width&height
18 | let g:pxW = winwidth / &columns
19 | let g:pxH = winheight / &lines
20 |
21 | " Midpoint of screen
22 | let midX = mx / 2
23 | let midY = my / 2
24 |
25 | " Where the top-left of the window needs to be
26 | let left = midX - (g:pxW * (g:cx+4)) - (g:pxW / 2)
27 | let top = midY - (g:pxH * (g:cy - g:topline)) - (g:pxH / 2)
28 |
29 | " Set it!
30 | let k = system("i3-msg move window position".left."px ".top."px")
31 |
32 | call TypewriterMove()
33 |
34 | endfunction
35 |
36 | function! TypewriterMove()
37 | " Figure out the cursor delta from last positioning.
38 | let a:cursor_pos = getpos(".")
39 | let cx_new = a:cursor_pos[2]
40 | let cy_new = a:cursor_pos[1]
41 | let topline_new = line("w0")
42 |
43 | " Figure out the adjustment to the location of the window.
44 | let left = g:pxW * (cx_new - g:cx)
45 | let up = g:pxH * (cy_new - g:cy - topline_new + g:topline)
46 |
47 | " Account for negative 'leftness'
48 | if left > 0
49 | let k = system("i3-msg move window left ".left."px ")
50 | elseif left < 0
51 | let left = 0 - left
52 | let k = system("i3-msg move window right ".left."px ")
53 | endif
54 |
55 | " Account for negative 'topness'
56 | if up > 0
57 | let k = system("i3-msg move window up ".up."px ")
58 | elseif up < 0
59 | let up = 0 - up
60 | let k = system("i3-msg move window down ".up."px ")
61 | endif
62 |
63 | " Update values
64 | let g:cx = cx_new
65 | let g:cy = cy_new
66 | let g:topline = topline_new
67 | let g:left = left
68 | let g:up = up
69 | endfunction
70 |
71 |
72 | function! TypeText()
73 | " Doing anything here causes my Vim to go mad.
74 | " This is where it SHOULD go, though!
75 |
76 | " up = 1 ie move down one line
77 | "if g:up == g:pxH
78 | " DoQuietly paplay $HOME/Scripts/ding.wav
79 | "
80 | " left = 1 ie move right one column
81 | "if g:left == g:pxW
82 | " DoQuietly paplay $HOME/type.wav
83 | "endif
84 | endfunction
85 |
86 |
87 | call Typewriter()
88 | autocmd InsertEnter * :call Typewriter()
89 | autocmd VimResized * :call Typewriter()
90 | autocmd CursorMoved * :call TypewriterMove()
91 | autocmd CursorMovedI * :call TypewriterMove()
92 | autocmd TextChangedI * :call TypeText()
93 |
--------------------------------------------------------------------------------
/old_rice/.vimrc:
--------------------------------------------------------------------------------
1 | " Vim config by Amey Khairnar
2 |
3 | execute pathogen#infect()
4 |
5 | set nocompatible
6 |
7 | set history=500
8 |
9 | " Base 16 theme to use terminal colors
10 | set background=light
11 | set termguicolors
12 | " colorscheme breezy
13 | colorscheme gruvbox
14 | " let g:material_theme_style = 'palenight'
15 | " let g:material_terminal_italics = 1
16 |
17 | filetype plugin on
18 | filetype indent on
19 | filetype on
20 | syntax on
21 |
22 | set autoread
23 | set hidden
24 | set nowrap
25 | set smartindent
26 | set autoindent
27 | set tabstop=4
28 | set shiftwidth=4
29 | set expandtab
30 | " set colorcolumn=100
31 |
32 | " Show matching brackets when text indicator is over them
33 | set showmatch
34 | " How many tenths of a second to blink when matching brackets
35 | set mat=2
36 | set number
37 | set wildmenu
38 | set ruler
39 |
40 | " For regular expressions turn magic on
41 | set magic
42 |
43 | " Add a bit extra margin to the left
44 | set foldcolumn=1
45 |
46 | "Vim will highlight searched words
47 | set hlsearch
48 |
49 | set ai "Auto indent
50 | set si "Smart indent
51 | set wrap "Wrap lines
52 |
53 | "Get backspace to work
54 | set backspace=indent,eol,start
55 |
56 | " Change shell
57 | set shell=/bin/zsh
58 |
59 | " Ignore compiled files
60 | set wildignore=*.o,*~,*.pyc
61 |
62 | " Return to last edit position when opening files
63 | au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
64 |
65 | augroup litecorrect
66 | autocmd!
67 | autocmd FileType markdown,mkd call litecorrect#init()
68 | autocmd FileType textile call litecorrect#init()
69 | augroup END
70 |
71 |
72 | """"""""""""""""""""""""""""""
73 | " => Mapping
74 | """"""""""""""""""""""""""""""
75 | let mapleader= " "
76 | nmap w :w! " Fast saving
77 | nmap g :Goyo " Toggle goyo
78 | nmap ty :source ~/.vim/vimty.vim " Typewriter mode
79 | nmap m * " Find all the words below cursor
80 | " Replace stuff
81 | nmap r :%s/
82 | " Fix indentation
83 | nmap i =i{
84 | " Add lines without exiting normal"
85 | nmap ok
86 |
87 | "Copy to system clipboard
88 | noremap tsc "+y
89 | "Paste from system clipboard
90 | map fsp o"+Pk
91 |
92 | "Navigation between window panes
93 | nmap :wincmd k
94 | nmap