From 969dcc5def911ee1b864a838424a06f7c14f4f65 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Thu, 11 Feb 2021 11:22:35 +0100 Subject: [PATCH] QOL --- files/.config/polybar/config | 2 +- files/.config/polybar/scripts/song.sh | 2 +- files/.vimrc | 13 ++++++------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/files/.config/polybar/config b/files/.config/polybar/config index 49b7c98..a2722ba 100644 --- a/files/.config/polybar/config +++ b/files/.config/polybar/config @@ -59,7 +59,7 @@ inherit = bar/main background = ${colors.clear} -width = 8% +width = 20% offset-x = 4px modules-left = i3 diff --git a/files/.config/polybar/scripts/song.sh b/files/.config/polybar/scripts/song.sh index 62a5fa8..4f97d62 100755 --- a/files/.config/polybar/scripts/song.sh +++ b/files/.config/polybar/scripts/song.sh @@ -33,5 +33,5 @@ function get_title () { [ ! -z "$(playerctl -p spotify status 2>/dev/null)" ] \ && artist=$(get_artist) \ && title=$(get_title) \ - && ([ -z "$artist$title" ] && scroll "" "Spotify is not connected on this pc" "" || scroll "%{F#79e6f3}$artist%{F#FFF} [" "$title" "]%{F-}" ) \ + && ([ -z "$artist$title" ] && scroll "" "Spotify is not connected on this pc" "" || scroll "$artist - " "$title" "%{F-}" ) \ || exit 1 diff --git a/files/.vimrc b/files/.vimrc index 819b1c3..77698a1 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -14,17 +14,17 @@ call plug#begin() Plug 'joshdick/onedark.vim' " color scheme -Plug 'tpope/vim-sleuth' " auto file-specific intendations +Plug 'tpope/vim-sleuth' " heuristic file indendation Plug 'jiangmiao/auto-pairs' " pair completion -Plug 'airblade/vim-gitgutter' " git +Plug 'airblade/vim-gitgutter' " show git changes Plug 'itchyny/lightline.vim' " bar Plug 'mengelbrecht/lightline-bufferline' " bufferline Plug 'ryanoasis/vim-devicons' " icons in bar -if executable("fzf") +if executable("fzf") " fzf support and bindings Plug 'junegunn/fzf' Plug 'junegunn/fzf.vim' endif @@ -106,7 +106,6 @@ let g:lightline.component_type = {'buffers': 'tabsel'} " ============================== Indents and Whitespaces set list set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:· -"set listchars=tab:\┊\ ,extends:›,precedes:‹,nbsp:·,trail:· set fillchars+=vert:\ "draw verticle split autocmd FileType perl set tabstop=8 shiftwidth=4 softtabstop=4 @@ -115,9 +114,9 @@ highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+\%#\@ unless capitol letters set hlsearch " highlight all results nnoremap :nohlsearch