From 75d5babfc35edd6cf532acb31a253188207a57aa Mon Sep 17 00:00:00 2001 From: pim-wtf Date: Thu, 17 Feb 2022 10:30:31 +0100 Subject: [PATCH] updated. --- alacritty/alacritty.yml | 4 +- bspwm/bspwmrc | 8 +- nvim/init.vim | 16 ++- picom/picom.conf | 11 +- polybar/config | 43 ++++-- zsh/.zcompdump | 306 ++++++++++++++++++++-------------------- zsh/.zshrc | 2 + 7 files changed, 210 insertions(+), 180 deletions(-) diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml index 5b06c50..3972a2a 100644 --- a/alacritty/alacritty.yml +++ b/alacritty/alacritty.yml @@ -189,7 +189,7 @@ colors: primary: # background: '#1d1f21' # background: '#1c2833' - background: '#0c181d' + background: '#000000' # foreground: '#c5c8c6' # Bright and dim foreground colors @@ -367,7 +367,7 @@ colors: # # Window opacity as a floating point number from `0.0` to `1.0`. # The value `0.0` is completely transparent and `1.0` is opaque. -background_opacity: 0.95 +# background_opacity: 1 #selection: # This string contains all characters that are used as separators for diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc index 129b271..05bb800 100755 --- a/bspwm/bspwmrc +++ b/bspwm/bspwmrc @@ -17,15 +17,19 @@ $HOME/.config/polybar/launch.sh # Set wallpaper. nitrogen --set-zoom-fill ~/.wallpapers/sf.jpg +# Load BT manager for keyboard. +blueman-manager & + # Load applications which require X server & WM to have launched. nextcloud --background & redshift & -bspc monitor -d I II III IV V VI +bspc monitor -d I II III IV V VI VII VIII # Match the bspwm window gap to the gaps of polybar. bspc config border_width 2 -bspc config window_gap 10 +bspc config window_gap 0 +bspc config top_padding 26 bspc config split_ratio 0.50 bspc config borderless_monocle true diff --git a/nvim/init.vim b/nvim/init.vim index e8e631d..35aa85f 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -17,15 +17,21 @@ Plug 'rust-lang/rust.vim' Plug 'Gavinok/vim-troff' Plug 'vim-airline/vim-airline' Plug 'Yggdroot/indentLine' +Plug 'vim-airline/vim-airline-themes' call plug#end() " configurations. set number relativenumber set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab -set softtabstop=0 noexpandtab autocmd BufRead *.md set spell spelllang=en_uk highlight LineNr ctermfg=8 +" airline configuration. +let g:airline_theme='minimalist' +let g:airline_powerline_fonts=1 +let g:airline#extensions#tabline#enabled = 1 +let g:airline#extensions#wordcount#enabled=1 + " vimtex configuration. let g:tex_flavor='latex' let g:vimtex_view_method='zathura' @@ -36,9 +42,13 @@ let g:vimtex_view_general_viewer='zathura' let g:pymode_lint_ignore="E501,W" let g:pymode_lint_ignore="E302,W" -"Set color of PEP8 line end column to grey. +" Set color of PEP8 line end column to grey. autocmd BufRead *.py hi ColorColumn ctermbg=8 " other plugins configuration let g:indentLine_leadingSpaceEnabled=1 -let g:airline#extensions#wordcount#enabled=1 +let g:indentLine_leadingSpaceChar = '⬞' + +" Custom commands +" Uses F4 to find and replace every instance of the word under the cursor. +nnoremap :%s///gc$F/i diff --git a/picom/picom.conf b/picom/picom.conf index 694d88d..a100d85 100644 --- a/picom/picom.conf +++ b/picom/picom.conf @@ -18,22 +18,21 @@ # unless explicitly requested using the wintypes option. # # shadow = false -shadow = true; +shadow = false; # The blur radius for shadows, in pixels. (defaults to 12) -# shadow-radius = 12 -shadow-radius = 20; +# shadow-radius = 20; # The opacity of shadows. (0.0 - 1.0, defaults to 0.75) -shadow-opacity = 0.9 +# shadow-opacity = 0.9 # The left offset for shadows, in pixels. (defaults to -15) # shadow-offset-x = -15 -shadow-offset-x = -20; +# shadow-offset-x = -20; # The top offset for shadows, in pixels. (defaults to -15) # shadow-offset-y = -15 -shadow-offset-y = -20; +# shadow-offset-y = -20; # Avoid drawing shadows on dock/panel windows. This option is deprecated, # you should use the *wintypes* option in your config file instead. diff --git a/polybar/config b/polybar/config index 9b4d3bd..a328e66 100644 --- a/polybar/config +++ b/polybar/config @@ -9,7 +9,7 @@ # Polybar configuation file. [colors] -background = #ee0c181d +background = #ff000000 foreground = #ccffffff background-alt = #444 @@ -20,16 +20,13 @@ secondary = #e60053 alert = #bd2c40 [bar/top] -width = 1900 -height = 30 +width = 1920 +height = 26 background = ${colors.background} foreground = ${colors.foreground} border-color = #00000000 -offset-y = 10 -offset-x = 10 - padding-left = 0 padding-right = 1 @@ -41,7 +38,7 @@ font-1 = MaterialIcons;3 font-2 = coins;3 modules-left = bspwm -modules-right = xbps-updates pulseaudio-control brightnessctl wlan wireless-network battery date +modules-right = xbps-updates pulseaudio-control wlan wireless-network battery date # modules-center = crypto fixed-center = true @@ -63,7 +60,7 @@ format-prefix = " " type = custom/script exec = ~/.config/polybar/scripts/xbps-updates.sh click-left = alacritty -e sudo xbps-install -Su -nterval = 60 +interval = 60 label-foreground = ${colors.foreground} [module/pulseaudio-control] @@ -101,7 +98,7 @@ full-at = 98 click-left = ~/.config/polybar/scripts/bat_toggle.sh format-charging = format-discharging = -format-full = +format-full = "" format-charging-foreground = #90C2E7 @@ -128,24 +125,42 @@ bar-capacity-empty-foreground = #44ffffff [module/bspwm] type = internal/bspwm -label-focused = "" +pin-workspaces = true +fuzzy-match = true + +ws-icon-0 = I; +ws-icon-1 = II; +ws-icon-2 = III; +ws-icon-3 = IV; +ws-icon-4 = V; +ws-icon-5 = VI; +ws-icon-6 = VII; +ws-icon-7 = VIII; +ws-icon-default =  + +format = + +label-monitor = %icon% + +label-focused = %icon% label-focused-background= ${colors.foreground-alt} label-focused-padding = 1 -label-occupied = "" +label-occupied = %icon% label-occupied-padding = 1 -label-urgent = "" +label-urgent = %icon% label-urgent-background = ${colors.alert} label-urgent-padding = 1 -label-empty = "" +label-empty = %icon% label-empty-foreground = ${colors.foreground-alt} label-empty-padding = 1 [module/date] type = internal/date -date = %H:%M +date = %Y-%m-%d %H:%M:%S +format = 