diff --git a/.bashrc b/.bashrc index 8d0ad77..41dd28d 100644 --- a/.bashrc +++ b/.bashrc @@ -148,6 +148,11 @@ alias music="ncmpcpp" alias py='ipython3 --TerminalInteractiveShell.editing_mode=vi' alias g='git' alias gc='git clone' +alias gs='git status' +alias ga='git add' +alias gb='git branch' +alias gl='git log' +alias gd='git diff' # Edit config and system files alias edit-bashrc='vim $HOME/.bashrc' @@ -288,7 +293,7 @@ export GOPATH="$HOME/go" export GO111MODULE=on export EDITOR='vim' export PAGER='less' -export NNN_BMS='h:~/;c:~/.config;n:~/Notes;' +export NNN_BMS='h:~/;c:~/.config;n:~/Notes;m:/mnt/media' export NNN_FIFO=/tmp/nnn.fifo export NNN_PLUG='p:preview-tui;c:x2sel;i:imgview;s:tmspawn' export USE_PISTOL=0 diff --git a/.profile b/.profile index 46bf0a0..e6df176 100644 --- a/.profile +++ b/.profile @@ -26,12 +26,12 @@ if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi -export PATH="$HOME/.config/composer/vendor/bin:$HOME/go/bin:/usr/lib/go/bin:$PATH" +export PATH="/snap/bin:$HOME/.config/composer/vendor/bin:$HOME/go/bin:/usr/lib/go/bin:$PATH" export GOPATH="$HOME/go" export GO111MODULE=on export EDITOR='vim' export PAGER='less' -export NNN_BMS='h:~/;c:~/.config;n:~/Notes;' +export NNN_BMS='h:~/;c:~/.config;n:~/Notes;m:/mnt/media' export NNN_FIFO=/tmp/nnn.fifo export NNN_PLUG='p:preview-tui;c:x2sel;i:imgview;s:tmspawn' export USE_PISTOL=0 diff --git a/.xsession b/.xsession index 783298e..8b468d8 100755 --- a/.xsession +++ b/.xsession @@ -8,7 +8,13 @@ speaker_medium=🔉 speaker_high=🔊 brightness_symbol=🔅 -DELAY=1m +# Check number of unread emails +messages() { + printf "$(find ~/Mail -path '*INBOX*' -not -name \ + '.uidvalidity' -type f | grep -vE ',[^,]*S[^,]*$'| wc -l)" +} + +DELAY=10m while true; do mbsync -a @@ -28,7 +34,7 @@ while true; do volume_symbol=$speaker_high fi - xsetroot -name "📧Messages $(find ~/Mail -path '*/INBOX/new' -type f | wc -l) | + xsetroot -name "📧Messages $(messages) | $volume_symbol$volume | $(date +"%c")" sleep $DELAY done & diff --git a/neomutt/neomuttrc b/neomutt/neomuttrc index e1906f2..7d4abec 100644 --- a/neomutt/neomuttrc +++ b/neomutt/neomuttrc @@ -49,7 +49,7 @@ set sort_re # Mailboxes to show in the sidebar. # mailboxes =ALL-INBOX mailboxes =personal/INBOX =personal/archive =personal/sent =personal/drafts =personal/junk =personal/trash -mailboxes =work/INBOX +mailboxes =work/INBOX =work/Drafts =work/'Sent Items' =work/Calendar # mailboxes =work/"[Gmail]INBOX" =work/"[Gmail]/Spam" =work/"[Gmail]/Trash" =work/"[Gmail]/All Mail" =work/Reference # mailboxes =hussar # mailboxes =hussar/archive =hussar/sent =hussar/drafts =hussar/junk =hussar/trash diff --git a/vimrc.local b/vimrc.local index 64ab4dc..a490b90 100644 --- a/vimrc.local +++ b/vimrc.local @@ -22,7 +22,7 @@ set tgc "More terminal colours let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum" let base16colorspace=256 -colorscheme base16-tomorrow-night +colorscheme base16-mocha "Pymode stuff let g:pymode_folding = 0 @@ -50,7 +50,6 @@ nmap L :CtrlPLine "NERDTree bingings nnoremap :NERDTreeToggle nnoremap t :NERDTreeFind -nnoremap :NERDTreeFocus "autocmd vimenter * NERDTree @@ -71,13 +70,11 @@ nnoremap :tabnext nnoremap :buffers:buffer noremap noremap -nmap p -noremap y w noremap h noremap l noremap j noremap k -nnoremap z :wa +nnoremap z :w nnoremap c :CtrlPChange nnoremap C :CtrlPChangeAll nnoremap :center @@ -97,6 +94,8 @@ map ow (easymotion-overwin-w) nmap of (easymotion-overwin-f2) nmap aw (easymotion-bd-w) nmap al (easymotion-bd-jk) +let g:EasyMotion_smartcase = 1 " Infer search casing +let g:EasyMotion_startofline = 0 " keep cursor column when JK motion "Copy and pasting vmap "+y @@ -217,3 +216,11 @@ let g:nnn#action = { let $NNN_BMS='h:~/;c:~/.config;n:~/Notes;' let $NNN_PLUG='p:preview-tui;c:x2sel;i:imgview;s:tmspawn' "let $NNN_FIFO=/tmp/nnn.fifo + + +" Prettier settings +" let g:prettier#config#config_precedence = 'file-override' +let g:prettier#autoformat = 1 +let g:prettier#autoformat_require_pragma = 0 +let g:prettier#config#tab_width = 4 +" let g:prettier#config#use_tabs = 'false'