much stuff

This commit is contained in:
vibikim 2020-11-05 10:26:43 +02:00
parent 860261b71e
commit 91595d7150
6 changed files with 149 additions and 38 deletions

View file

@ -1,38 +1,76 @@
!! special
!*.foreground: #cee3eb
!*.background: #010202
!*.cursorColor: #cee3eb
!! *.font: TerminessTTF Nerd Font Mono
!
!! black
!*.color0: #020405
!*.color8: #51a285
!
!! red
!*.color1: #0e1416
!*.color9: #E36441
!
!! green
!*.color2: #1d272a
!*.color10: #93a350
!
!! yellow
!*.color3: #314045
!*.color11: #e38c41
!
!! blue
!*.color4: #4c6067
!*.color12: #5ac9e6
!
!! magenta
!*.color5: #6c8791
!*.color13: #f947b5
!
!! cyan
!*.color6: #91b5c2
!*.color14: #52d4a9
!
!! white
!*.color7: #d3e6ed
!*.color15: #9fb52e
! special ! special
*.foreground: #cee3eb *.foreground: #e7d5e2
*.background: #010202 *.background: #0a0408
*.cursorColor: #cee3eb *.cursorColor: #e7d5e2
! *.font: TerminessTTF Nerd Font Mono
! black ! black
*.color0: #020405 *.color0: #12080f
*.color8: #51a285 *.color8: #e2b3ab
! red ! red
*.color1: #0e1416 *.color1: #21121d
*.color9: #E36441 *.color9: #e6c6dc
! green ! green
*.color2: #1d272a *.color2: #382132
*.color10: #93a350 *.color10: #cbc687
! yellow ! yellow
*.color3: #314045 *.color3: #57364f
*.color11: #e38c41 *.color11: #e1b0a8
! blue ! blue
*.color4: #4c6067 *.color4: #7f5173
*.color12: #5ac9e6 *.color12: #b1b6df
! magenta ! magenta
*.color5: #6c8791 *.color5: #af719f
*.color13: #f947b5 *.color13: #eecae3
! cyan ! cyan
*.color6: #91b5c2 *.color6: #cea4c2
*.color14: #52d4a9 *.color14: #65c4cd
! white ! white
*.color7: #d3e6ed *.color7: #eddfe8
*.color15: #9fb52e *.color15: #f0c1b9

View file

@ -14,18 +14,26 @@ nm-applet &
blueman-applet & blueman-applet &
xfce4-power-manager & xfce4-power-manager &
numlockx on & numlockx on &
#/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
/usr/bin/lxqt-policykit-agent & /usr/bin/lxqt-policykit-agent &
### ###
# MONITORS # MONITORS
### ###
if [ "`hostname`" = "beef-book" ]; then if [ "`hostname`" = "beef-book" ]; then
bspc monitor "DP-1" -d 1 2 3 4 5 6 if [ -n "`polybar -m | grep "DP-4"`" ]; then
bspc monitor "DP-4" -d 1 2 3 4 5 6 7 8 9 # for docked desktop use: assign 2 workspaces to the second VGA monitor accordingly if it is connected
bspc monitor "LVDS1" -d 1 2 3 4 5 6 7 8 9 if [ -n "`polybar -m | grep "VGA-0"`" ]; then
bspc monitor "LVDS-1-1" -d 1 2 3 4 5 6 7 8 9 bspc monitor "DP-4" -d 1 2 3 4 5 6 7
bspc monitor "VGA-0" 7 8 9 bspc monitor "VGA-0" -d 8 9
else
bspc monitor "DP-4" -d 1 2 3 4 5 6 7 8 9
fi
else
bspc monitor -d 1 2 3 4 5 6 7 8 9
#bspc monitor "DP-1" -d 1 2 3 4 5 6 7 8 9
#bspc monitor "LVDS1" -d 1 2 3 4 5 6 7 8 9
#bspc monitor "LVDS-1-1" -d 1 2 3 4 5 6 7 8 9
fi
elif [ "`hostname`" = "salad-book" ]; then elif [ "`hostname`" = "salad-book" ]; then
bspc monitor "eDP-1" -d 1 2 3 4 5 6 7 8 9 bspc monitor "eDP-1" -d 1 2 3 4 5 6 7 8 9
bspc monitor "HDMI-0" -d 1 2 3 4 5 6 7 8 9 bspc monitor "HDMI-0" -d 1 2 3 4 5 6 7 8 9
@ -40,6 +48,7 @@ bspc config remove_disabled_monitors true
bspc config remove_unplugged_monitors true bspc config remove_unplugged_monitors true
bspc config merge_overlapping_monitors true bspc config merge_overlapping_monitors true
bspc config pointer_follows_monitor true bspc config pointer_follows_monitor true
bspc config center_pseudo_tiled false
#bspc config bottom_padding 25 #bspc config bottom_padding 25
#bspc config top_monocle_padding 0 #bspc config top_monocle_padding 0
@ -97,10 +106,11 @@ bspc rule -a Pavucontrol state=floating
bspc rule -a copyq state=floating bspc rule -a copyq state=floating
bspc rule -a Blueman-manager state=floating bspc rule -a Blueman-manager state=floating
bspc rule -a Arandr state=floating bspc rule -a Arandr state=floating
bspc rule -a galculator state=floating bspc rule -a Galculator state=floating
bspc rule -a Screenkey manage=off bspc rule -a Screenkey manage=off
bspc rule -a Navigator desktop='^1' bspc rule -a Navigator desktop='^1'
bspc rule -a discord desktop='^4' bspc rule -a discord desktop='^4'
bspc rule -a dosbox state=pseudo_tiled
bspc rule -a AlarmWindow state=floating bspc rule -a AlarmWindow state=floating
bspc rule -a pop-up state=floating bspc rule -a pop-up state=floating
bspc rule -a setup state=floating bspc rule -a setup state=floating

View file

@ -3,7 +3,7 @@
choices="4:3\nMain screen\nSecond screen" choices="4:3\nMain screen\nSecond screen"
chosen=$(echo -e "$choices" | dmenu -i) chosen=$(echo "$choices" | dmenu -i)
case "$chosen" in case "$chosen" in
4:3) xsetwacom set "Wacom Intuos S 2 Pen stylus" Area 0 0 11400 8550 ;; 4:3) xsetwacom set "Wacom Intuos S 2 Pen stylus" Area 0 0 11400 8550 ;;

View file

@ -13,6 +13,10 @@ set splitbelow splitright
set cursorline set cursorline
" Netrw settings
let g:netrw_liststyle = 0
let g:netrw_banner = 0
" restore cursor to the last position after reopening a file " restore cursor to the last position after reopening a file
autocmd BufReadPost * autocmd BufReadPost *
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
@ -28,10 +32,15 @@ map <leader>sr :setlocal spell! spelllang=ro<CR>
" ### " ###
call plug#begin('~/.local/share/nvim/plugged') call plug#begin('~/.local/share/nvim/plugged')
" REMINDER - on a new system install go for hexokinase (color preview) " REMINDER - some plugins have the following external dependencies
" hexokinase(color preview): go
" coc(code completion): nodejs, yarn
Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' } Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' }
Plug 'vimwiki/vimwiki' Plug 'vimwiki/vimwiki'
Plug 'franbach/miramare' Plug 'franbach/miramare'
Plug 'antoinemadec/FixCursorHold.nvim'
Plug 'lambdalisue/fern.vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end() call plug#end()
@ -44,6 +53,45 @@ let g:Hexokinase_highlighters = ['backgroundfull']
autocmd VimEnter * HexokinaseTurnOn autocmd VimEnter * HexokinaseTurnOn
" ###
" # Fern -- sidebar file manager
" ###
let g:fern#drawer_width = 30
let g:fern#default_hidden = 1
let g:fern#disable_drawer_auto_quit = 1
""" KEYBIND TO TOGGLE FERN
noremap <leader>f :Fern . -drawer -toggle <CR>
function! s:init_fern() abort
nmap <buffer> H <Plug>(fern-action-open:split)
nmap <buffer> V <Plug>(fern-action-open:vsplit)
nmap <buffer> R <Plug>(fern-action-rename)
nmap <buffer> M <Plug>(fern-action-move)
nmap <buffer> C <Plug>(fern-action-copy)
"nmap <buffer> N <Plug>(fern-action-new-path)
nmap <buffer> T <Plug>(fern-action-new-file)
nmap <buffer> D <Plug>(fern-action-new-dir)
nmap <buffer> S <Plug>(fern-action-hidden-toggle)
nmap <buffer> dd <Plug>(fern-action-trash)
nmap <buffer> m <Plug>(fern-action-mark)
endfunction
augroup fern-custom
autocmd! *
autocmd FileType fern call s:init_fern()
augroup END
""" C Compiler!
function! TermWrapper(command) abort
exec '20sp '
exec 'term ' . a:command
exec 'startinsert'
endfunction
command! -nargs=0 CompileAndRun call TermWrapper(printf('gcc -lm %s && ./a.out', expand('%'), <args>))
" ### " ###
" # Key Remapping " # Key Remapping
" ### " ###
@ -53,7 +101,8 @@ map <C-s> :source ~/.config/nvim/init.vim<CR>
nnoremap <leader>e :Ex<CR> nnoremap <leader>e :Ex<CR>
" Easier Write and Quit aliases " Easier Write and Quit aliases
nnoremap <leader>q :q<CR> "nnoremap <silent> <leader>q :CocCommand cord.disconnect<CR>:q<CR>
nnoremap <silent> <leader>q :q<CR>
nnoremap <leader>Q :wq<CR> nnoremap <leader>Q :wq<CR>
nnoremap <leader>w :w<CR> nnoremap <leader>w :w<CR>
@ -64,16 +113,29 @@ nnoremap <leader>k <C-w>k
nnoremap <leader>l <C-w>l nnoremap <leader>l <C-w>l
" Make adjusing split sizes a bit more friendly " Make adjusing split sizes a bit more friendly
noremap <silent> <C-Left> :vertical resize +3<CR> noremap <silent> <C-h> :vertical resize +3<CR>
noremap <silent> <C-Right> :vertical resize -3<CR> noremap <silent> <C-l> :vertical resize -3<CR>
noremap <silent> <C-Up> :resize +3<CR> noremap <silent> <C-k> :resize +3<CR>
noremap <silent> <C-Down> :resize -3<CR> noremap <silent> <C-j> :resize -3<CR>
" New splits " New splits
nnoremap <leader>sv :Vex<CR> nnoremap <leader>sv :Vex<CR>
nnoremap <leader>sh :Sex<CR> nnoremap <leader>sh :Sex<CR>
nnoremap <leader>t :24sp<CR>:term<CR>:startinsert<CR> nnoremap <leader>t :24sp<CR>:term<CR>:startinsert<CR>
nnoremap <leader>cc :CompileAndRun<CR>
" exit insert mode in terminal easier " exit insert mode in terminal easier
tnoremap <C-\> <C-\><C-N> tnoremap <C-\> <C-\><C-N>
tnoremap <A-k> <C-w>k tnoremap <A-h> <C-\><C-N><C-w>h
tnoremap <A-j> <C-\><C-N><C-w>j
tnoremap <A-k> <C-\><C-N><C-w>k
tnoremap <A-l> <C-\><C-N><C-w>l
inoremap <A-h> <C-\><C-N><C-w>h
inoremap <A-j> <C-\><C-N><C-w>j
inoremap <A-k> <C-\><C-N><C-w>k
inoremap <A-l> <C-\><C-N><C-w>l
nnoremap <A-h> <C-w>h
nnoremap <A-j> <C-w>j
nnoremap <A-k> <C-w>k
nnoremap <A-l> <C-w>l

View file

@ -356,7 +356,7 @@ icon-next = 
[module/workspaces] [module/workspaces]
type = internal/bspwm type = internal/bspwm
pin-workspaces = true pin-workspaces = false
enable-click = true enable-click = true
enable-scroll = true enable-scroll = true
@ -373,6 +373,7 @@ ws-icon-5 = 6;VI
ws-icon-6 = 7;VII ws-icon-6 = 7;VII
ws-icon-7 = 8;VIII ws-icon-7 = 8;VIII
ws-icon-8 = 9;IX ws-icon-8 = 9;IX
ws-icon-9 = 0;X
ws-icon-default = o ws-icon-default = o
label-monitor = %name% label-monitor = %name%
@ -429,7 +430,7 @@ format-foreground = ${color.fg}
format-padding = 4 format-padding = 4
label = %title% label = %title%
label-maxlen = 50 label-maxlen = 100
; Used instead of label when there is no window title ; Used instead of label when there is no window title
; Available tokens: ; Available tokens:

View file

@ -16,7 +16,7 @@ if [ -z "`pgrep -x polybar`" ]; then
BAR="main" BAR="main"
#Detect if DP or internal laptop displays are connected and show a polybar for them #Detect if DP or internal laptop displays are connected and show a polybar for them
#TODO look at the other laptop for the name of the HDMI output #TODO look at the other laptop for the name of the HDMI output
for m in $(polybar -m | grep "\(DP\|LVDS\|eDP\|DisplayPort\)" | cut -d ':' -f1); do for m in $(polybar -m | grep "\(HDMI\|DP\|LVDS\|eDP\|DisplayPort\)" | cut -d ':' -f1); do
MONITOR=$m MONITOR=$m
polybar --reload $BAR -c ~/.config/polybar/config.ini & polybar --reload $BAR -c ~/.config/polybar/config.ini &
sleep 1 sleep 1