diff options
-rw-r--r-- | alacritty/.config/alacritty/alacritty.yml | 40 | ||||
-rw-r--r-- | nvim/.config/nvim/colors/jellybeans.vim | 2 | ||||
-rw-r--r-- | nvim/.config/nvim/init.vim | 151 | ||||
-rw-r--r-- | spectrwm/.config/spectrwm/spectrwm.conf | 6 | ||||
-rw-r--r-- | x/.Xresources | 141 | ||||
-rw-r--r-- | x/.xinitrc | 5 |
6 files changed, 227 insertions, 118 deletions
diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml index 162fd9c..a4c4d06 100644 --- a/alacritty/.config/alacritty/alacritty.yml +++ b/alacritty/.config/alacritty/alacritty.yml | |||
@@ -2,41 +2,41 @@ colors: | |||
2 | # Default colors | 2 | # Default colors |
3 | primary: | 3 | primary: |
4 | background: '0x000000' | 4 | background: '0x000000' |
5 | foreground: '0xc0c5ce' | 5 | foreground: '0xeeffff' |
6 | 6 | ||
7 | # Normal colors | 7 | # Normal colors |
8 | normal: | 8 | normal: |
9 | black: '0x2b303b' | 9 | black: '0x000000' |
10 | red: '0xbf616a' | 10 | red: '0xf07178' |
11 | green: '0xa3be8c' | 11 | green: '0x13ca91' |
12 | yellow: '0xebcb8b' | 12 | yellow: '0x00fdb4' |
13 | blue: '0x8fa1b3' | 13 | blue: '0x7898fb' |
14 | magenta: '0xb48ead' | 14 | magenta: '0xff3299' |
15 | cyan: '0x96b5b4' | 15 | cyan: '0x79ffe1' |
16 | white: '0xc0c5ce' | 16 | white: '0xeeffff' |
17 | 17 | ||
18 | # Bright colors | 18 | # Bright colors |
19 | bright: | 19 | bright: |
20 | black: '0x65737e' | 20 | black: '0x4a4a4a' |
21 | red: '0xbf616a' | 21 | red: '0xf78c6c' |
22 | green: '0xa3be8c' | 22 | green: '0x303030' |
23 | yellow: '0xebcb8b' | 23 | yellow: '0x353535' |
24 | blue: '0x8fa1b3' | 24 | blue: '0x787878' |
25 | magenta: '0xb48ead' | 25 | magenta: '0xeeffff' |
26 | cyan: '0x96b5b4' | 26 | cyan: '0xff5370' |
27 | white: '0xeff1f5' | 27 | white: '0xffffff' |
28 | 28 | ||
29 | background_opacity: 1.0 | 29 | background_opacity: 1.0 |
30 | 30 | ||
31 | font: | 31 | font: |
32 | normal: | 32 | normal: |
33 | family: "Hermit" | 33 | family: "Input Mono" |
34 | style: Regular | 34 | style: Regular |
35 | bold: | 35 | bold: |
36 | family: "Hermit" | 36 | family: "Input Mono" |
37 | style: Bold | 37 | style: Bold |
38 | italic: | 38 | italic: |
39 | family: "Hermit" | 39 | family: "Input Mono" |
40 | style: Italic | 40 | style: Italic |
41 | 41 | ||
42 | # Point size | 42 | # Point size |
diff --git a/nvim/.config/nvim/colors/jellybeans.vim b/nvim/.config/nvim/colors/jellybeans.vim index bb57c28..73a0d98 100644 --- a/nvim/.config/nvim/colors/jellybeans.vim +++ b/nvim/.config/nvim/colors/jellybeans.vim | |||
@@ -88,7 +88,7 @@ endif | |||
88 | " - g:jellybeans_use_gui_italics (default = 1) | 88 | " - g:jellybeans_use_gui_italics (default = 1) |
89 | " - g:jellybeans_use_term_italics (default = 0) | 89 | " - g:jellybeans_use_term_italics (default = 0) |
90 | 90 | ||
91 | let s:background_color = "070707" | 91 | let s:background_color = "000000" |
92 | 92 | ||
93 | if exists("g:jellybeans_overrides") | 93 | if exists("g:jellybeans_overrides") |
94 | let s:overrides = g:jellybeans_overrides | 94 | let s:overrides = g:jellybeans_overrides |
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index c61ef87..ecb1c98 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim | |||
@@ -35,7 +35,7 @@ set shiftwidth=4 " number of spaces to use for autoindent | |||
35 | set expandtab " tabs are space | 35 | set expandtab " tabs are space |
36 | set autoindent | 36 | set autoindent |
37 | set copyindent " copy indent from the previous line | 37 | set copyindent " copy indent from the previous line |
38 | colorscheme jellybeans | 38 | colorscheme bloodbath |
39 | "hi Normal ctermbg=16 guibg=#000000 | 39 | "hi Normal ctermbg=16 guibg=#000000 |
40 | "hi LineNr ctermbg=16 guibg=#000000 | 40 | "hi LineNr ctermbg=16 guibg=#000000 |
41 | 41 | ||
@@ -112,15 +112,140 @@ map <C-l> <C-w>l | |||
112 | nnoremap S :%s//gI<Left><Left><Left> | 112 | nnoremap S :%s//gI<Left><Left><Left> |
113 | 113 | ||
114 | "statusbar | 114 | "statusbar |
115 | hi Comment cterm=italic | 115 | scriptencoding utf-8 |
116 | hi CursorLine guibg=#2b2b2b | 116 | |
117 | set statusline= | 117 | " statusline |
118 | set statusline +=%1*\ %n\ %* "buffer number | 118 | |
119 | set statusline +=%5*%{&ff}%* "file format | 119 | let g:currentmode={ |
120 | set statusline +=%3*%y%* "file type | 120 | \ 'n' : 'NORMAL ', |
121 | set statusline +=%4*\ %<%F%* "full path | 121 | \ 'no' : 'N·OPERATOR PENDING ', |
122 | set statusline +=%2*%m%* "modified flag | 122 | \ 'v' : 'VISUAL ', |
123 | set statusline +=%1*%=%5l%* "current line | 123 | \ 'V' : 'V·LINE ', |
124 | set statusline +=%2*/%L%* "total lines | 124 | \ '' : 'V·BLOCK ', |
125 | set statusline +=%1*%4v\ %* "virtual column number | 125 | \ 's' : 'SELECT ', |
126 | set statusline +=%2*0x%04B\ %* "character under cursor | 126 | \ 'S' : 'S·LINE ', |
127 | \ '' : 'S·BLOCK ', | ||
128 | \ 'i' : 'INSERT ', | ||
129 | \ 'R' : 'REPLACE ', | ||
130 | \ 'Rv' : 'V·REPLACE ', | ||
131 | \ 'c' : 'COMMAND ', | ||
132 | \ 'cv' : 'VIM EX ', | ||
133 | \ 'ce' : 'EX ', | ||
134 | \ 'r' : 'PROMPT ', | ||
135 | \ 'rm' : 'MORE ', | ||
136 | \ 'r?' : 'CONFIRM ', | ||
137 | \ '!' : 'SHELL ', | ||
138 | \ 't' : 'TERMINAL '} | ||
139 | |||
140 | hi PrimaryBlock ctermfg=00 ctermbg=6 | ||
141 | hi SecondaryBlock ctermfg=07 ctermbg=10 | ||
142 | hi Blanks ctermfg=00 ctermbg=11 | ||
143 | |||
144 | hi User1 ctermfg=01 ctermbg=0 | ||
145 | hi User2 ctermfg=02 ctermbg=0 | ||
146 | hi User3 ctermfg=03 ctermbg=0 | ||
147 | hi User4 ctermfg=04 ctermbg=0 | ||
148 | hi User5 ctermfg=05 ctermbg=0 | ||
149 | hi User6 ctermfg=06 ctermbg=0 | ||
150 | hi User7 ctermfg=07 ctermbg=0 | ||
151 | hi User8 ctermfg=08 ctermbg=0 | ||
152 | hi User9 ctermfg=09 ctermbg=0 | ||
153 | |||
154 | highlight EndOfBuffer ctermfg=black ctermbg=black | ||
155 | |||
156 | function! GitBranch() | ||
157 | return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'") | ||
158 | endfunction | ||
159 | |||
160 | function! StatuslineGit() | ||
161 | let l:branchname = GitBranch() | ||
162 | return strlen(l:branchname) > 0?'* '.l:branchname.' ':'' | ||
163 | endfunction | ||
164 | |||
165 | function! ReadOnly() abort | ||
166 | if !&modifiable && &readonly | ||
167 | return ' RO' | ||
168 | elseif &modifiable && &readonly | ||
169 | return 'RO' | ||
170 | elseif !&modifiable && !&readonly | ||
171 | return '' | ||
172 | else | ||
173 | return '' | ||
174 | endif | ||
175 | endfunction | ||
176 | |||
177 | function! Filepath() abort | ||
178 | let l:basename = expand('%:h') | ||
179 | let l:filename = expand('%:t') | ||
180 | let l:extension = expand('%:e') | ||
181 | let l:prefix = (l:basename ==# '' || l:basename ==# '.') ? | ||
182 | \ '' : substitute(l:basename . '/', '\C^' . $HOME, '~', '') | ||
183 | |||
184 | if empty(l:prefix) && empty(l:filename) | ||
185 | return printf('%%8*%%f%%*%s %%m%%*', '%8*') | ||
186 | elseif empty(l:prefix) | ||
187 | return printf('%%8*%%f%%*%s %%m%%*', '%6*') | ||
188 | else | ||
189 | return printf('%%8*%s%%*%s%s%%*', l:prefix, &modified ? '%6*' : '%8*', l:filename) | ||
190 | endif | ||
191 | endfunction | ||
192 | |||
193 | function! LinterStatus() abort | ||
194 | let info = get(b:, 'coc_diagnostic_info', {}) | ||
195 | if empty(info) | return '' | endif | ||
196 | let msgs = [] | ||
197 | if get(info, 'error', 0) | ||
198 | call add(msgs, printf('%%5*%s×%%*', info['error'])) | ||
199 | endif | ||
200 | if get(info, 'warning', 0) | ||
201 | call add(msgs, printf('%%3*%s!%%*', info['warning'])) | ||
202 | endif | ||
203 | return join(msgs, ' ') | ||
204 | endfunction | ||
205 | |||
206 | function! StatusLine(mode) abort | ||
207 | let l:line='' | ||
208 | |||
209 | " help or man pages | ||
210 | if &filetype ==# 'help' || &filetype ==# 'man' | ||
211 | let l:line.=' %#StatusLineNC# ['. &filetype .'] %f ' | ||
212 | return l:line | ||
213 | endif | ||
214 | |||
215 | " active | ||
216 | if a:mode ==# 'active' | ||
217 | let l:line.='%7*%{StatuslineGit()}' | ||
218 | let l:line.='%<' | ||
219 | let l:line.=Filepath() | ||
220 | |||
221 | let l:line.='%5*' | ||
222 | let l:line.=' %{ReadOnly()} %w%*' | ||
223 | let l:line.='%9* %=%*' | ||
224 | |||
225 | let l:line.='%7* %l,%c %*' | ||
226 | let l:line.='%8* %{g:currentmode[mode()]}%*' | ||
227 | let l:line.=' ' | ||
228 | let l:line.=LinterStatus() | ||
229 | let l:line.=' ' | ||
230 | let l:line.='%8*'. &filetype | ||
231 | |||
232 | else | ||
233 | " inactive | ||
234 | let l:line.='%#Blanks#' | ||
235 | let l:line.='%f %5*%m%*' | ||
236 | let l:line.='%#Blanks# %=%*' | ||
237 | endif | ||
238 | |||
239 | let l:line.='%*' | ||
240 | |||
241 | return l:line | ||
242 | endfunction | ||
243 | |||
244 | set statusline=%!StatusLine('active') | ||
245 | augroup MyStatusLine | ||
246 | autocmd! | ||
247 | autocmd WinEnter * setl statusline=%!StatusLine('active') | ||
248 | autocmd WinLeave * setl statusline=%!StatusLine('inactive') | ||
249 | augroup END | ||
250 | |||
251 | |||
diff --git a/spectrwm/.config/spectrwm/spectrwm.conf b/spectrwm/.config/spectrwm/spectrwm.conf index ebb1b4a..0ff36dc 100644 --- a/spectrwm/.config/spectrwm/spectrwm.conf +++ b/spectrwm/.config/spectrwm/spectrwm.conf | |||
@@ -34,11 +34,11 @@ bar_enabled = 1 | |||
34 | bar_border_width = 0 | 34 | bar_border_width = 0 |
35 | bar_border[1] = rgb:00/80/80 | 35 | bar_border[1] = rgb:00/80/80 |
36 | bar_border_unfocus[1] = rgb:00/40/40 | 36 | bar_border_unfocus[1] = rgb:00/40/40 |
37 | bar_color[1] = rgb:07/07/07 | 37 | bar_color[1] = rgb:00/00/00 |
38 | bar_color_selected[1] = rgb:00/80/80 | 38 | bar_color_selected[1] = rgb:00/80/80 |
39 | bar_font_color[1] = rgb:b5/b5/b5, rgb:73/73/73 | 39 | bar_font_color[1] = rgb:ee/ff/ff, rgb:78/78/78 |
40 | bar_font_color_selected = black | 40 | bar_font_color_selected = black |
41 | bar_font = Hermit:size=9.5:antialias=true:autohint=true:autohint=true:lcdfilter=lcddefault:rgba=rgb | 41 | bar_font = Hermit:pixelsize=12.5:antialias=true:autohint=true:autohint=true:lcdfilter=lcddefault:rgba=rgb |
42 | bar_action = ~/.config/spectrwm/statusbar | 42 | bar_action = ~/.config/spectrwm/statusbar |
43 | bar_action_expand = 1 | 43 | bar_action_expand = 1 |
44 | bar_justify = left | 44 | bar_justify = left |
diff --git a/x/.Xresources b/x/.Xresources index a8c0489..2985bba 100644 --- a/x/.Xresources +++ b/x/.Xresources | |||
@@ -1,87 +1,76 @@ | |||
1 | URxvt.urgentOnBell: off | 1 | ! ------------------------------------------------------------------------------ |
2 | URxvt.visualBell: false | 2 | ! Colors |
3 | URxvt.iso14755: false | 3 | ! ------------------------------------------------------------------------------ |
4 | URxvt.iso14755_52: off | 4 | ! |
5 | URxvt.meta8: false | 5 | !------------------------------------------------------------------------------ |
6 | URxvt.depth: 32 | ||
7 | URxvt.metaSendsEscape: true | ||
8 | URxvt.scrollBar: off | ||
9 | URxvt.cursorBlink: true | ||
10 | URxvt.cursorUnderline: true | ||
11 | URxvt.saveLines: 10000 | ||
12 | URxvt.scrollTtyOutput: false | ||
13 | URxvt.scrollWithBuffer: true | ||
14 | URxvt.scrollTtyKeypress: true | ||
15 | 6 | ||
16 | URxvt.font: xft:Hermit:pixelsize=12:style=medium:antialias=true | 7 | #define base00 #000000 |
17 | URxvt.boldFont: xft:Hermit:pixelsize=12:style=bold:antialias=true | 8 | #define base01 #303030 |
18 | URxvt.italicFont: xft:Hermit:pixelsize=12:style=italic:antialias=true | 9 | #define base02 #353535 |
19 | URxvt.letterSpace: 1 | 10 | #define base03 #4A4A4A |
20 | urxvt*termName: rxvt-256color | 11 | #define base04 #787878 |
21 | urxvt*scrollBar: false | 12 | #define base05 #EEFFFF |
22 | urxvt*matcher.button: 1 | 13 | #define base06 #EEFFFF |
23 | urxvt.transparent: false | 14 | #define base07 #FFFFFF |
24 | !urxvt.boldFont: | 15 | #define base08 #F07178 |
25 | Xft*dpi: 96 | 16 | #define base09 #F78C6C |
26 | Xft*antialias: true | 17 | #define base0A #00fdb4 |
27 | Xft*hinting: true | 18 | #define base0B #13CA91 |
28 | Xft*hintstyle: hintfull | 19 | #define base0C #79ffe1 |
29 | Xft.lcdfilter: lcddefault | 20 | #define base0D #7898FB |
30 | Xft*rgba: rgb | 21 | #define base0E #ff3299 |
31 | URxvt*cursorUnderline: true | 22 | #define base0F #FF5370 |
32 | URxvt*geometry: 85x20 | ||
33 | *internalBorder: 15 | ||
34 | URxvt*fading: 0 | ||
35 | URxvt*tintColor: #ffffff | ||
36 | URxvt*shading: 0 | ||
37 | URxvt*inheritPixmap: False | ||
38 | 23 | ||
39 | ! special | 24 | ! URxvt |
40 | *.foreground: #c6c8d1 | 25 | ! ------------------------------------------------------------------------------ |
41 | *.background: #000000 | ||
42 | *.cursorColor: #c6c8d1 | ||
43 | 26 | ||
44 | ! black | 27 | *foreground: base05 |
45 | *.color0: #161821 | 28 | *background: base00 |
46 | *.color8: #6b7089 | 29 | *cursorColor: base05 |
47 | 30 | ||
48 | ! red | 31 | *color0: base00 |
49 | *.color1: #e27878 | 32 | *color1: base08 |
50 | *.color9: #e98989 | 33 | *color2: base0B |
34 | *color3: base0A | ||
35 | *color4: base0D | ||
36 | *color5: base0E | ||
37 | *color6: base0C | ||
38 | *color7: base05 | ||
51 | 39 | ||
52 | ! green | 40 | *color8: base03 |
53 | *.color2: #b4be82 | 41 | *color9: base09 |
54 | *.color10: #c0ca8e | 42 | *color10: base01 |
43 | *color11: base02 | ||
44 | *color12: base04 | ||
45 | *color13: base06 | ||
46 | *color14: base0F | ||
47 | *color15: base07 | ||
55 | 48 | ||
56 | ! yellow | 49 | URxvt.cursorBlink : 1 |
57 | *.color3: #e2a478 | 50 | URxvt.font :xft:Input Mono:pixelsize=12.5:style=Regular \ |
58 | *.color11: #e9b189 | 51 | xft:DejaVu Sans Mono:size=12.5:style=Medium |
59 | 52 | ||
60 | ! blue | 53 | URxvt.italicFont :xft:Input Mono:pixelsize=12.5:style=Italic |
61 | *.color4: #84a0c6 | 54 | URxvt.boldFont :xft:Input Mono:pixelsize=12.5:style=Bold |
62 | *.color12: #91acd1 | ||
63 | 55 | ||
64 | ! magenta | 56 | URxvt.lineSpace : 0 |
65 | *.color5: #a093c7 | 57 | URxvt.letterSpace : -1 |
66 | *.color13: #ada0d3 | 58 | URxvt.scrollBar : false |
59 | URxvt.internalBorder : 25 | ||
60 | URxvt.cursorUnderline : false | ||
61 | URxvt.geometry : 70x35 | ||
62 | URxvt.thickness : 5 | ||
63 | URxvt.titleBar : false | ||
64 | URxvt.intensityStyles : false | ||
67 | 65 | ||
68 | ! cyan | ||
69 | *.color6: #89b8c2 | ||
70 | *.color14: #95c4ce | ||
71 | 66 | ||
72 | ! white | 67 | URxvt.perl-ext-common : default,matcher |
73 | *.color7: #c6c8d1 | 68 | URxvt.url-launcher : firefox-bin |
74 | *.color15: #d2d4de | 69 | URxvt.matcher.button : 1 |
75 | 70 | ||
76 | ! Perls | 71 | Xft.autohint: 1 |
77 | URxvt.perl-ext-common : default,matcher,keyboard-select,resize-font | 72 | Xft.antialias: 1 |
78 | URxvt.resize-font.step: 1 | 73 | Xft.lcdfilter: lcddefault |
79 | URxvt.keysym.M-Escape : perl:keyboard-select:activate | 74 | Xft.hinting: true |
80 | URxvt.keysym.M-u : perl:url-select:select_next | 75 | Xft.rgba: rgb |
81 | URxvt.keysym.M-s : perl:keyboard-select:search | 76 | Xft.dpi: 96 |
82 | !URxvt.perl-ext-common : tabbed,default,matcher | ||
83 | Urxvt.perl-lib : /usr/lib64/urxvt/perl/ | ||
84 | URxvt.url-select.launcher : firefox | ||
85 | URxvt.url-select.autocopy : true | ||
86 | URxvt.url-select.underline : true | ||
87 | URxvt.url-select.button: 1 | ||
@@ -2,9 +2,4 @@ | |||
2 | #.xinitrc | 2 | #.xinitrc |
3 | xset b off & | 3 | xset b off & |
4 | xset s 600 & | 4 | xset s 600 & |
5 | # ~/bin/xss & | ||
6 | # ~/.fehbg & | ||
7 | # picom 2>/dev/null & | ||
8 | # dwmbar & | ||
9 | |||
10 | exec dbus-launch --exit-with-session spectrwm | 5 | exec dbus-launch --exit-with-session spectrwm |