Skip to content

Commit c661566

Browse files
committed
tmp
1 parent 78bb4fd commit c661566

File tree

3 files changed

+206
-18
lines changed

3 files changed

+206
-18
lines changed

config/bspwm/bspwmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bspc config focus_follows_pointer true
1414

1515
bspc config split_ratio 0.52
1616
bspc config borderless_monocle true
17-
bspc config gapless_monocle false
17+
bspc config gapless_monocle true
1818

1919
# Border colors
2020
bspc config normal_border_color "#1c1c1c"

config/polybar/config

Lines changed: 83 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,15 @@ alert = #bd2c40
3030
[bar/mybar]
3131
;monitor = ${env:MONITOR:HDMI-1}
3232
width = 100%
33+
<<<<<<< Updated upstream
3334
height = 27
3435
;offset-x = 0
3536
;offset-y = 0
37+
=======
38+
height = 22
39+
; offset-x = 0
40+
; offset-y = 0
41+
>>>>>>> Stashed changes
3642
radius = 0.0
3743
fixed-center = false
3844

@@ -45,19 +51,18 @@ line-color = #f00
4551
border-size = 0
4652
border-color = #00000000
4753

48-
padding-left = 0
54+
padding-left = 1
4955
padding-right = 2
5056

5157
module-margin-left = 1
5258
module-margin-right = 2
5359

54-
font-0 = Hack Nerd Font:style=Regular:antialias=true:pixelsize=9;1
55-
font-1 = Hack Nerd Font:style=Regular:antialias=true:pixelsize=9;0
56-
font-2 = Noto Sans Mono:size=9;1
60+
; font-0 = Hack Nerd Font:style=Regular:antialias=true:pixelsize=9;1
61+
font-0 = Iosevka:style=Bold:pixelsize=10;3
5762

58-
modules-left = bspwm mpd
59-
;modules-center = mpd
60-
modules-right = pulseaudio cpu wlan eth battery date powermenu
63+
modules-left = cpu memory
64+
modules-center = bspwm
65+
modules-right = alsa wlan eth battery date
6166

6267
tray-position = right
6368
tray-padding = 2
@@ -96,10 +101,10 @@ label-indicator-underline = ${colors.secondary}
96101
[module/bspwm]
97102
type = internal/bspwm
98103

99-
ws-icon-0 = I;
100-
ws-icon-1 = II;
101-
ws-icon-2 = III;
102-
ws-icon-3 = IV;
104+
ws-icon-0 = I;TERM
105+
ws-icon-1 = II;CHROM
106+
ws-icon-2 = III;FILE
107+
ws-icon-3 = IV;ETC
103108

104109
label-focused = %icon%
105110
label-focused-background = ${colors.background-alt}
@@ -176,17 +181,22 @@ label-song-ellipsis = false
176181
[module/cpu]
177182
type = internal/cpu
178183
interval = 2
184+
<<<<<<< Updated upstream
179185
format-prefix = ""
180186
format-prefix-foreground = ${colors.foreground-alt}
181187
format-underline = #f90000
188+
=======
189+
format-prefix = "CPU "
190+
format-prefix-foreground = ${colors.red}
191+
; format-underline = #f90000
192+
>>>>>>> Stashed changes
182193
label = %percentage:2%%
183194

184195
[module/memory]
185196
type = internal/memory
186197
interval = 2
187-
format-prefix = ""
188-
format-prefix-foreground = ${colors.foreground-alt}
189-
format-underline = #4bffdc
198+
format-prefix = "MEM "
199+
format-prefix-foreground = ${colors.red}
190200
label = %percentage_used%%
191201

192202
[module/wlan]
@@ -216,9 +226,15 @@ type = internal/network
216226
interface = enp2s0
217227
interval = 3.0
218228

229+
<<<<<<< Updated upstream
219230
format-connected-underline = #55aa55
220231
format-connected-prefix = ""
221232
format-connected-prefix-foreground = ${colors.foreground-alt}
233+
=======
234+
; format-connected-underline = #55aa55
235+
format-connected-prefix = "ETH: "
236+
format-connected-prefix-foreground = ${colors.yellow}
237+
>>>>>>> Stashed changes
222238
label-connected = Connected
223239

224240
format-disconnected =
@@ -232,14 +248,17 @@ type = internal/date
232248
interval = 5
233249

234250
date = " %m-%d"
235-
date-alt = " %Y-%m-%d"
236251

237252
time = %H:%M
238-
time-alt = %H:%M:%S
239253

254+
<<<<<<< Updated upstream
240255
format-prefix = 
241256
format-prefix-foreground = ${colors.foreground-alt}
242257
format-underline = #0a6cf5
258+
=======
259+
format-prefix = "DT:"
260+
format-prefix-foreground = ${colors.cyan}
261+
>>>>>>> Stashed changes
243262

244263
label = %date% %time%
245264

@@ -282,9 +301,15 @@ format-charging-underline = #ffb52a
282301
format-discharging = <animation-discharging> <label-discharging>
283302
format-discharging-underline = ${self.format-charging-underline}
284303

304+
<<<<<<< Updated upstream
285305
format-full-prefix = ""
286306
format-full-prefix-foreground = ${colors.foreground-alt}
287307
format-full-underline = ${self.format-charging-underline}
308+
=======
309+
format-full-prefix = "BAT "
310+
format-full-prefix-foreground = ${colors.blue}
311+
; format-full-underline = ${self.format-charging-underline}
312+
>>>>>>> Stashed changes
288313

289314
ramp-capacity-0 = 
290315
ramp-capacity-1 = 
@@ -310,7 +335,7 @@ expand-right = true
310335

311336
format-spacing = 1
312337

313-
label-open =
338+
label-open = POWER
314339
label-open-foreground = ${colors.secondary}
315340
label-close =  cancel
316341
label-close-foreground = ${colors.secondary}
@@ -339,6 +364,47 @@ menu-3-0-exec = i3lock && systemctl suspend
339364
menu-3-1 = cancel
340365
menu-3-1-exec = menu-open-0
341366

367+
[module/alsa]
368+
type = internal/alsa
369+
370+
; Soundcard to be used
371+
; Usually in the format hw:# where # is the card number
372+
; You can find the different card numbers in `/proc/asound/cards`
373+
master-soundcard = default
374+
speaker-soundcard = default
375+
headphone-soundcard = default
376+
377+
; Name of the master, speaker and headphone mixers
378+
; Use the following command to list available mixer controls:
379+
; $ amixer scontrols | sed -nr "s/.*'([[:alnum:]]+)'.*/\1/p"
380+
; If master, speaker or headphone-soundcard isn't the default,
381+
; use `amixer -c # scontrols` instead where # is the number
382+
; of the master, speaker or headphone soundcard respectively
383+
;
384+
; Default: Master
385+
master-mixer = Master
386+
387+
; Optionally define speaker and headphone mixers
388+
; Default: none
389+
speaker-mixer = Speaker
390+
; Default: none
391+
headphone-mixer = Headphone
392+
393+
; NOTE: This is required if headphone_mixer is defined
394+
; Use the following command to list available device controls
395+
; $ amixer controls | sed -r "/CARD/\!d; s/.*=([0-9]+).*name='([^']+)'.*/printf '%3.0f: %s\n' '\1' '\2'/e" | sort
396+
; You may also need to use `amixer -c # controls` as above for the mixer names
397+
; Default: none
398+
headphone-id = 9
399+
400+
; Use volume mapping (similar to amixer -M and alsamixer), where the increase in volume is linear to the ear
401+
; Default: false
402+
mapped = true
403+
404+
; Interval for volume increase/decrease (in percent points)
405+
; Default: 5
406+
interval = 5
407+
342408
[settings]
343409
screenchange-reload = true
344410
;compositing-background = xor

vim/init.vim

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,129 @@ nnoremap <leader>a :Ack!<Space>
138138
139139
" Fzf
140140
nnoremap <silent> <c-p> :Files<cr>
141+
<<<<<<< Updated upstream
141142
nnoremap <silent> <leader>l :Buffers<cr>
143+
=======
144+
nnoremap <silent> <leader>b :Buffers<cr>
145+
nnoremap <silent> <leader>fr :Rg<cr>
146+
147+
" Fugitive
148+
nnoremap <silent> <leader>gb :Git blame<cr>
149+
nnoremap <silent> <leader>gd :Gdiff<cr>
150+
nnoremap <silent> <leader>gh :diffget //2<cr>
151+
nnoremap <silent> <leader>gl :diffget //3<cr>
152+
153+
" YankStack
154+
let g:yankstack_yank_keys = ['y', 'd']
155+
nmap <leader>p <Plug>yankstack_substitute_older_paste
156+
nmap <leader>P <Plug>yankstack_substitute_newer_paste
157+
158+
" Vim Test
159+
nmap <silent> <leader>tn :TestNearest<CR>
160+
nmap <silent> <leader>tf :TestFile<CR>
161+
nmap <silent> <leader>ts :TestSuite<CR>
162+
nmap <silent> <leader>tl :TestLast<CR>
163+
nmap <silent> <leader>tv :TestVisit<CR>
164+
165+
" Defx
166+
nnoremap <C-n> :Defx<CR>
167+
nnoremap <silent> <leader>ff :Defx -toggle=0 -search=`expand('%:p')`<CR>
168+
169+
autocmd FileType defx call s:defx_my_settings()
170+
function! s:defx_my_settings() abort
171+
" Define mappings
172+
nnoremap <nowait><silent><buffer><expr> c
173+
\ defx#do_action('copy')
174+
nnoremap <silent><buffer><expr> x
175+
\ defx#do_action('move')
176+
nnoremap <nowait><silent><buffer><expr> d
177+
\ defx#do_action('remove')
178+
nnoremap <silent><buffer><expr> p
179+
\ defx#do_action('paste')
180+
nnoremap <silent><buffer><expr> r
181+
\ defx#do_action('rename')
182+
nnoremap <silent><buffer><expr> K
183+
\ defx#do_action('new_directory')
184+
nnoremap <silent><buffer><expr> m
185+
\ defx#do_action('new_file')
186+
nnoremap <silent><buffer><expr> M
187+
\ defx#do_action('new_multiple_files')
188+
nnoremap <silent><buffer><expr> <CR>
189+
\ defx#is_directory() ?
190+
\ defx#do_action('open_or_close_tree') :
191+
\ defx#do_action('drop')
192+
nnoremap <silent><buffer><expr> o
193+
\ defx#is_directory() ?
194+
\ defx#do_action('open_or_close_tree') :
195+
\ defx#do_action('drop')
196+
nnoremap <silent><buffer><expr> <2-LeftMouse>
197+
\ defx#is_directory() ?
198+
\ defx#do_action('open_or_close_tree') :
199+
\ defx#do_action('drop')
200+
nnoremap <silent><buffer><expr> i
201+
\ defx#do_action('close_tree')
202+
nnoremap <silent><buffer><expr> l
203+
\ defx#do_action('open_directory')
204+
nnoremap <silent><buffer><expr> h
205+
\ defx#do_action('cd', ['..'])
206+
nnoremap <silent><buffer><expr> v
207+
\ defx#do_action('toggle_select')
208+
nnoremap <silent><buffer><expr> V
209+
\ defx#do_action('clear_select_all')
210+
nnoremap <silent><buffer><expr> *
211+
\ defx#do_action('toggle_select_all')
212+
nnoremap <silent><buffer><expr> E
213+
\ defx#do_action('open', 'vsplit')
214+
nnoremap <silent><buffer><expr> P
215+
\ defx#do_action('preview')
216+
nnoremap <silent><buffer><expr> C
217+
\ defx#do_action('toggle_columns', 'indent:icon:filename:type:size:time')
218+
nnoremap <silent><buffer><expr> S
219+
\ defx#do_action('toggle_sort', 'time')
220+
nnoremap <silent><buffer><expr> s
221+
\ defx#do_action('search')
222+
nnoremap <silent><buffer><expr> !
223+
\ defx#do_action('execute_command')
224+
nnoremap <silent><buffer><expr> X
225+
\ defx#do_action('execute_system')
226+
nnoremap <silent><buffer><expr> y
227+
\ defx#do_action('yank_path')
228+
nnoremap <silent><buffer><expr> .
229+
\ defx#do_action('toggle_ignored_files')
230+
nnoremap <silent><buffer><expr> ;
231+
\ defx#do_action('repeat')
232+
nnoremap <silent><buffer><expr> ~
233+
\ defx#do_action('cd')
234+
nnoremap <silent><buffer><expr> q
235+
\ defx#do_action('quit')
236+
nnoremap <silent><buffer><expr> j
237+
\ line('.') == line('$') ? 'gg' : 'j'
238+
nnoremap <silent><buffer><expr> k
239+
\ line('.') == 1 ? 'G' : 'k'
240+
nnoremap <silent><buffer><expr> <C-r>
241+
\ defx#do_action('redraw')
242+
nnoremap <silent><buffer><expr> <C-g>
243+
\ defx#do_action('print')
244+
nnoremap <silent><buffer><expr> cd
245+
\ defx#do_action('change_vim_cwd')
246+
endfunction
247+
248+
" CtrlSF
249+
let g:ctrlsf_mapping = {
250+
\ "openb": { "key": "O", "suffix": "<C-w>p" },
251+
\ "next": "n",
252+
\ "prev": "N",
253+
\ "vsplit": "v",
254+
\ }
255+
nmap <C-F>f <Plug>CtrlSFPrompt
256+
vmap <C-F>f <Plug>CtrlSFVwordPath
257+
vmap <C-F>F <Plug>CtrlSFVwordExec
258+
nmap <C-F>n <Plug>CtrlSFCwordPath
259+
nmap <C-F>p <Plug>CtrlSFPwordPath
260+
nnoremap <C-F>o :CtrlSFOpen<CR>
261+
nnoremap <C-F>t :CtrlSFToggle<CR>
262+
inoremap <C-F>t <Esc>:CtrlSFToggle<CR>
263+
>>>>>>> Stashed changes
142264

143265
" others
144266
map <leader>= :ALEFix<cr>

0 commit comments

Comments
 (0)