summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alacritty/.config/alacritty/alacritty.yml40
-rw-r--r--nvim/.config/nvim/colors/jellybeans.vim2
-rw-r--r--nvim/.config/nvim/init.vim151
-rw-r--r--spectrwm/.config/spectrwm/spectrwm.conf6
-rw-r--r--x/.Xresources141
-rw-r--r--x/.xinitrc5
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
29background_opacity: 1.0 29background_opacity: 1.0
30 30
31font: 31font:
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
91let s:background_color = "070707" 91let s:background_color = "000000"
92 92
93if exists("g:jellybeans_overrides") 93if 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
35set expandtab " tabs are space 35set expandtab " tabs are space
36set autoindent 36set autoindent
37set copyindent " copy indent from the previous line 37set copyindent " copy indent from the previous line
38colorscheme jellybeans 38colorscheme 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
112nnoremap S :%s//gI<Left><Left><Left> 112nnoremap S :%s//gI<Left><Left><Left>
113 113
114"statusbar 114"statusbar
115hi Comment cterm=italic 115scriptencoding utf-8
116hi CursorLine guibg=#2b2b2b 116
117set statusline= 117" statusline
118set statusline +=%1*\ %n\ %* "buffer number 118
119set statusline +=%5*%{&ff}%* "file format 119let g:currentmode={
120set statusline +=%3*%y%* "file type 120 \ 'n' : 'NORMAL ',
121set statusline +=%4*\ %<%F%* "full path 121 \ 'no' : 'N·OPERATOR PENDING ',
122set statusline +=%2*%m%* "modified flag 122 \ 'v' : 'VISUAL ',
123set statusline +=%1*%=%5l%* "current line 123 \ 'V' : 'V·LINE ',
124set statusline +=%2*/%L%* "total lines 124 \ '' : 'V·BLOCK ',
125set statusline +=%1*%4v\ %* "virtual column number 125 \ 's' : 'SELECT ',
126set 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
140hi PrimaryBlock ctermfg=00 ctermbg=6
141hi SecondaryBlock ctermfg=07 ctermbg=10
142hi Blanks ctermfg=00 ctermbg=11
143
144hi User1 ctermfg=01 ctermbg=0
145hi User2 ctermfg=02 ctermbg=0
146hi User3 ctermfg=03 ctermbg=0
147hi User4 ctermfg=04 ctermbg=0
148hi User5 ctermfg=05 ctermbg=0
149hi User6 ctermfg=06 ctermbg=0
150hi User7 ctermfg=07 ctermbg=0
151hi User8 ctermfg=08 ctermbg=0
152hi User9 ctermfg=09 ctermbg=0
153
154highlight EndOfBuffer ctermfg=black ctermbg=black
155
156function! GitBranch()
157 return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
158endfunction
159
160function! StatuslineGit()
161 let l:branchname = GitBranch()
162 return strlen(l:branchname) > 0?'* '.l:branchname.' ':''
163endfunction
164
165function! 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
175endfunction
176
177function! 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
191endfunction
192
193function! 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, ' ')
204endfunction
205
206function! 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
242endfunction
243
244set statusline=%!StatusLine('active')
245augroup MyStatusLine
246 autocmd!
247 autocmd WinEnter * setl statusline=%!StatusLine('active')
248 autocmd WinLeave * setl statusline=%!StatusLine('inactive')
249augroup 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
34bar_border_width = 0 34bar_border_width = 0
35bar_border[1] = rgb:00/80/80 35bar_border[1] = rgb:00/80/80
36bar_border_unfocus[1] = rgb:00/40/40 36bar_border_unfocus[1] = rgb:00/40/40
37bar_color[1] = rgb:07/07/07 37bar_color[1] = rgb:00/00/00
38bar_color_selected[1] = rgb:00/80/80 38bar_color_selected[1] = rgb:00/80/80
39bar_font_color[1] = rgb:b5/b5/b5, rgb:73/73/73 39bar_font_color[1] = rgb:ee/ff/ff, rgb:78/78/78
40bar_font_color_selected = black 40bar_font_color_selected = black
41bar_font = Hermit:size=9.5:antialias=true:autohint=true:autohint=true:lcdfilter=lcddefault:rgba=rgb 41bar_font = Hermit:pixelsize=12.5:antialias=true:autohint=true:autohint=true:lcdfilter=lcddefault:rgba=rgb
42bar_action = ~/.config/spectrwm/statusbar 42bar_action = ~/.config/spectrwm/statusbar
43bar_action_expand = 1 43bar_action_expand = 1
44bar_justify = left 44bar_justify = left
diff --git a/x/.Xresources b/x/.Xresources
index a8c0489..2985bba 100644
--- a/x/.Xresources
+++ b/x/.Xresources
@@ -1,87 +1,76 @@
1URxvt.urgentOnBell: off 1! ------------------------------------------------------------------------------
2URxvt.visualBell: false 2! Colors
3URxvt.iso14755: false 3! ------------------------------------------------------------------------------
4URxvt.iso14755_52: off 4!
5URxvt.meta8: false 5!------------------------------------------------------------------------------
6URxvt.depth: 32
7URxvt.metaSendsEscape: true
8URxvt.scrollBar: off
9URxvt.cursorBlink: true
10URxvt.cursorUnderline: true
11URxvt.saveLines: 10000
12URxvt.scrollTtyOutput: false
13URxvt.scrollWithBuffer: true
14URxvt.scrollTtyKeypress: true
15 6
16URxvt.font: xft:Hermit:pixelsize=12:style=medium:antialias=true 7#define base00 #000000
17URxvt.boldFont: xft:Hermit:pixelsize=12:style=bold:antialias=true 8#define base01 #303030
18URxvt.italicFont: xft:Hermit:pixelsize=12:style=italic:antialias=true 9#define base02 #353535
19URxvt.letterSpace: 1 10#define base03 #4A4A4A
20urxvt*termName: rxvt-256color 11#define base04 #787878
21urxvt*scrollBar: false 12#define base05 #EEFFFF
22urxvt*matcher.button: 1 13#define base06 #EEFFFF
23urxvt.transparent: false 14#define base07 #FFFFFF
24!urxvt.boldFont: 15#define base08 #F07178
25Xft*dpi: 96 16#define base09 #F78C6C
26Xft*antialias: true 17#define base0A #00fdb4
27Xft*hinting: true 18#define base0B #13CA91
28Xft*hintstyle: hintfull 19#define base0C #79ffe1
29Xft.lcdfilter: lcddefault 20#define base0D #7898FB
30Xft*rgba: rgb 21#define base0E #ff3299
31URxvt*cursorUnderline: true 22#define base0F #FF5370
32URxvt*geometry: 85x20
33*internalBorder: 15
34URxvt*fading: 0
35URxvt*tintColor: #ffffff
36URxvt*shading: 0
37URxvt*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 49URxvt.cursorBlink : 1
57*.color3: #e2a478 50URxvt.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 53URxvt.italicFont :xft:Input Mono:pixelsize=12.5:style=Italic
61*.color4: #84a0c6 54URxvt.boldFont :xft:Input Mono:pixelsize=12.5:style=Bold
62*.color12: #91acd1
63 55
64! magenta 56URxvt.lineSpace : 0
65*.color5: #a093c7 57URxvt.letterSpace : -1
66*.color13: #ada0d3 58URxvt.scrollBar : false
59URxvt.internalBorder : 25
60URxvt.cursorUnderline : false
61URxvt.geometry : 70x35
62URxvt.thickness : 5
63URxvt.titleBar : false
64URxvt.intensityStyles : false
67 65
68! cyan
69*.color6: #89b8c2
70*.color14: #95c4ce
71 66
72! white 67URxvt.perl-ext-common : default,matcher
73*.color7: #c6c8d1 68URxvt.url-launcher : firefox-bin
74*.color15: #d2d4de 69URxvt.matcher.button : 1
75 70
76! Perls 71Xft.autohint: 1
77URxvt.perl-ext-common : default,matcher,keyboard-select,resize-font 72Xft.antialias: 1
78URxvt.resize-font.step: 1 73Xft.lcdfilter: lcddefault
79URxvt.keysym.M-Escape : perl:keyboard-select:activate 74Xft.hinting: true
80URxvt.keysym.M-u : perl:url-select:select_next 75Xft.rgba: rgb
81URxvt.keysym.M-s : perl:keyboard-select:search 76Xft.dpi: 96
82!URxvt.perl-ext-common : tabbed,default,matcher
83Urxvt.perl-lib : /usr/lib64/urxvt/perl/
84URxvt.url-select.launcher : firefox
85URxvt.url-select.autocopy : true
86URxvt.url-select.underline : true
87URxvt.url-select.button: 1
diff --git a/x/.xinitrc b/x/.xinitrc
index af968d5..97028bf 100644
--- a/x/.xinitrc
+++ b/x/.xinitrc
@@ -2,9 +2,4 @@
2#.xinitrc 2#.xinitrc
3xset b off & 3xset b off &
4xset s 600 & 4xset s 600 &
5# ~/bin/xss &
6# ~/.fehbg &
7# picom 2>/dev/null &
8# dwmbar &
9
10exec dbus-launch --exit-with-session spectrwm 5exec dbus-launch --exit-with-session spectrwm