From 8f92d4511b229906eb9b0e4c4514887eeb9a9b9b Mon Sep 17 00:00:00 2001 From: Adam Cooper Date: Fri, 4 Aug 2023 18:47:21 -0400 Subject: [PATCH] Various changes - [mail] Update the aerc config - [vim] Add plugins, enable airline tabline, highlight cursor row - [xmobar] Fix gap --- mail/aerc/aerc.conf | 9 +++++++-- newsboat/.newsboat/history.search | 1 + vim/.vimrc | 12 ++++++------ xmobar/.xmobarrc | 2 +- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/mail/aerc/aerc.conf b/mail/aerc/aerc.conf index be33079..ba985c0 100644 --- a/mail/aerc/aerc.conf +++ b/mail/aerc/aerc.conf @@ -55,7 +55,8 @@ pinned-tab-marker='`' # Describes the format string to use for the directory list # # Default: %n %>r -dirlist-format=%n %>r +dirlist-left = {{.Folder}} +dirlist-right = {{if .Unread}}{{humanReadable .Unread}}/{{end}}{{if .Exists}}{{humanReadable .Exists}}{{end}} # List of space-separated criteria to sort the messages by, see *sort* # command in *aerc*(1) for reference. Prefixing a criterion with "-r " @@ -182,7 +183,8 @@ image/*=catimg -w $(tput cols) - # # Executed when a new email arrives in the selected folder -new-email=exec notify-send "New email from %n" "%s" +# Deprecated as of 2023-07-28 +# new-email=exec notify-send "New email from %n" "%s" [templates] # Templates are used to populate email bodies automatically. @@ -203,3 +205,6 @@ quoted-reply=quoted_reply # # default: forward_as_body forwards=forward_as_body + +[hooks] +mail-received=exec notify-send "New email from $AERC_FROM_NAME" "$AERC_SUBJECT" diff --git a/newsboat/.newsboat/history.search b/newsboat/.newsboat/history.search index 7580163..3c46a88 100644 --- a/newsboat/.newsboat/history.search +++ b/newsboat/.newsboat/history.search @@ -8,3 +8,4 @@ Ukraine election Ukraine leak leak +wolff diff --git a/vim/.vimrc b/vim/.vimrc index a6c7958..fc8aa31 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -21,6 +21,9 @@ set number " Default: split right set splitright +" Highlight cursor line +set cursorline + " Allow hidden buffers, don't limit to one file per window/split set hidden @@ -75,10 +78,9 @@ endif call plug#begin('~/.vim/plugged') Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' -" Plug 'edkolev/tmuxline.vim' -" Plug 'christoomey/vim-tmux-navigator' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' +Plug 'tpope/vim-fugitive' Plug 'dense-analysis/ale' Plug 'Valloric/YouCompleteMe' Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } @@ -90,10 +92,10 @@ Plug 'Quramy/tsuquyomi' Plug 'rust-lang/rust.vim' Plug 'neovimhaskell/haskell-vim' Plug 'vim-scripts/indentpython.vim' -" Plug 'severij/vadelma' Plug 'dracula/vim', { 'as': 'dracula' } Plug 'tpope/vim-surround' Plug 'mattn/emmet-vim' +Plug 'kovisoft/slimv' call plug#end() " Tsuquyomi @@ -101,8 +103,8 @@ autocmd filetype typescript nmap t : echo tsuquyomi#hint() " Airline let g:airline_powerline_fonts = 1 -" let g:airline_theme = 'light' let g:airline#extensions#tmuxline#enabled = 0 +let g:airline#extensions#tabline#enabled = 1 " ALE let g:ale_linters = { @@ -128,8 +130,6 @@ filetype plugin indent on syntax enable " Set color scheme -" set background=light -" colorscheme vadelma set background=dark colorscheme dracula diff --git a/xmobar/.xmobarrc b/xmobar/.xmobarrc index 433781d..631129d 100644 --- a/xmobar/.xmobarrc +++ b/xmobar/.xmobarrc @@ -3,7 +3,7 @@ Config { overrideRedirect = False , additionalFonts = ["JoyPixels 24"] , bgColor = "#ffff99" , fgColor = "#191970" - , position = TopSize L 89 28 + , position = TopSize L 88 28 , commands = [ Run WeatherX "KLGA" [ ("clear", "clear") , ("sunny", "sunny")