From 3b2bca60b413f0209f35032319594e66f72435cc Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 19 Mar 2019 10:54:11 -0500 Subject: [PATCH] Email setup, cleanup provisioning scripts --- apps/mutt/muttrc | 45 ++++++++++++--- scripts/arch-linux/provisioning/1-pacaur.bash | 4 +- .../arch-linux/provisioning/2-essentials.bash | 55 +++++++++---------- scripts/arch-linux/provisioning/3-extras.bash | 9 +-- shell/bash/aliases | 3 + 5 files changed, 71 insertions(+), 45 deletions(-) diff --git a/apps/mutt/muttrc b/apps/mutt/muttrc index ebaa240..1f0a928 100644 --- a/apps/mutt/muttrc +++ b/apps/mutt/muttrc @@ -5,6 +5,10 @@ set from = "daniel@lytedev.io" set use_from = yes set envelope_from = yes +set sidebar_visible +set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" +set mail_check_stats + set smtp_url = 'smtps://wraithx2@gmail.com@smtp.gmail.com:465/' set smtp_pass = `pass google-app-password | head -n 1` set imap_user = 'wraithx2@gmail.com' @@ -15,19 +19,42 @@ set mbox="imaps://imap.gmail.com/[Gmail]/All Mail" set ssl_force_tls = yes set folder = imaps://imap.gmail.com/ set spoolfile = +INBOX -set record = "+[Gmail]/Sent Mail" +# set record = "+[Gmail]/Sent Mail" set postponed = "+[Gmail]/Drafts" set editor = "nvim" +set timeout = 30 + +mailboxes =INBOX "=[Gmail]/All Mail" =[Gmail]/Sent\ Mail =[Gmail]/Drafts =[Gmail]/Spam =[Gmail]/Trash + +set sort=reverse-date + +bind index,pager \CD sync-mailbox +bind index,pager \CP sidebar-prev +bind index,pager \CN sidebar-next +bind index,pager \CI sidebar-open +bind index,pager \CB sidebar-toggle-visible + +bind pager g top +bind pager G top + +bind attach,index g first-entry +bind attach,index G last-entry + +set header_cache = "~/.cache/mutt/headers" +set message_cachedir = "~/.cache/mutt/bodies" + +macro index,pager A s>y # G to get mail -bind index G imap-fetch-mail +bind index \CR imap-fetch-mail -macro index ga "=[Gmail]/All Mail" "Go to all mail" -macro index gd "=[Gmail]/Drafts" "Go to drafts" -macro index gi "=INBOX" "Go to inbox" -macro index gs "=[Gmail]/Starred" "Go to starred messages" -macro index gt "=[Gmail]/Trash" "Go to trash" -macro index,pager d "=[Gmail]/Trash" "Trash" -macro index,pager y "=[Gmail]/All Mail" "Archive" +# bind index g noop +# macro index ga "=[Gmail]/All Mail" "Go to all mail" +# macro index gd "=[Gmail]/Drafts" "Go to drafts" +# macro index gi "=INBOX" "Go to inbox" +# macro index gs "=[Gmail]/Starred" "Go to starred messages" +# macro index gt "=[Gmail]/Trash" "Go to trash" +# macro index,pager d "=[Gmail]/Trash" "Trash" +# macro index,pager y "=[Gmail]/All Mail" "Archive" set record="" diff --git a/scripts/arch-linux/provisioning/1-pacaur.bash b/scripts/arch-linux/provisioning/1-pacaur.bash index ac2537b..799d5ef 100755 --- a/scripts/arch-linux/provisioning/1-pacaur.bash +++ b/scripts/arch-linux/provisioning/1-pacaur.bash @@ -1,12 +1,14 @@ #!/usr/bin/env bash +# TODO: this script is out of date! + # installs pacaur on a fresh arch install # install the dependencies sudo pacman -S git curl openssl perl expac yajl --noconfirm # receive cower's gpg key -gpg --recv-keys 1EB2638FF56C0C53 +# gpg --recv-keys 1EB2638FF56C0C53 # setup a temporary place to install the packages from REPOSITORY_PATH="/tmp/provisioning" diff --git a/scripts/arch-linux/provisioning/2-essentials.bash b/scripts/arch-linux/provisioning/2-essentials.bash index 9366d9e..7952d84 100755 --- a/scripts/arch-linux/provisioning/2-essentials.bash +++ b/scripts/arch-linux/provisioning/2-essentials.bash @@ -1,62 +1,59 @@ #!/usr/bin/env bash -# TODO: install alacritty - pacaur --needed -S \ + neomutt `# Email Client` \ + weechat `# IRC Client` \ + aria2 `# Downloads Manager` \ tree `# Handy Filesystem Viewing Utility` \ rofi `# Application Launcher` \ - the_silver_searcher ripgrep `# Code Search Utilities` \ - alsa-utils `# Audio Utilities` \ + ripgrep `# Code Search Utilities` \ + fd `# File Search` \ + fzf `# Fuzzy File Finder` \ htop `# Process Management and System Resources Monitoring` \ openssh `# Remote Access` \ openssl `# Crypto` \ elixir `# Elixir Language` \ - ruby `# Language` \ nodejs npm yarn `# Language` \ python python-pip `# Python 3 Language` \ - python2 python2-pip `# Language` \ pass `# Password Management` \ firefox-developer-edition `# Default Web Browser` \ - bash-completion `# Handy Scripts for Tab-Completion in Bash` \ - fzf `# Fuzzy File Finder` \ rsync `# File Transfer` \ + alsa-utils `# Audio Utilities` \ + alsa-plugins `# Plugins for ALSA` \ pulseaudio pavucontrol `# Audio Backend and Controls` \ + pulseaudio-ctl `# CLI Utility for Pulseaudio` \ neovim vim `# Text Editors` \ unzip `# Handy Utility for ZIP Files` \ - xsel `# Manage X Selection` \ - xclip `# Manage X Clipboards` \ + xclip xsel `# X Selection & Clipboard Management` \ + autocutsel `# Clipboard Helper` \ tmux `# Terminal Multiplexer` \ rxvt-unicode-pixbuf `# Terminal with PixBuf Patches` \ - xorg-xinit xorg-server xorg-xrdb `# X.org Display Server` \ - xorg-drivers `# Video Drivers for X?` \ - xcb-util xcb-util-keysyms xcb-util-wm xorg-xrandr xdotool feh xorg-xprop `# X Utilties` \ - pulseaudio-ctl `# CLI Utility for Pulseaudio` \ - alsa-plugins `# Plugins for ALSA` \ + kitty `# Almost Better Terminal Emulator` \ + xorg-xinit xorg-server xorg-xrdb `# X Display Server` \ + xorg-drivers `# Video Drivers for X` \ + xcb-util xcb-util-keysyms xcb-util-wm xorg-xrandr xdotool xorg-xprop `# X Utilties` \ + feh `# Image Viewer & Wallpaper Manager` \ unclutter-xfixes-git `# Hides cursor after no use for a time` \ gtk-engine-murrine xorg-server-devel `# GTK Theme Base and Headers?` \ bspwm-git sxhkd-git xdo-git `# Window Manager and Tools for its use` \ + wlroots-git sway-git `# Wayland Compositor` \ terminus-font ttf-iosevka-pack `# Primary Fonts` \ - ttf-freefont `# Font` \ - ttf-monaco `# Font` \ ttf-font-awesome `# Icon Font` \ - autocutsel `# Clipboard Helper` \ curl `# HTTP Utility` \ w3m `# Viewing Images in Terminals` \ jq `# CLI for Interacting with JSON` \ + bash-completion `# Handy Scripts for Tab-Completion in Bash` \ --noconfirm --noedit # install text editor utilities and other python packages -sudo pip3 install neovim jedi mistune psutil setproctitle -sudo pip2 install neovim - -# shortcut for browser -sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/chrome - -# install patched fonts -mkdir -p "$HOME/.fonts/OTF" -curl -L -o "$HOME/.fonts/OTF/monaco_powerline_nerd_font.otf" https://github.com/taohex/font/raw/master/Monaco%20for%20Powerline%20Nerd%20Font%20Complete.otf -fc-cache -vf +sudo pip3 install \ + neovim `# Text Editor Plugin Integration` \ + jedi `# Text Editor Intelligence Helper` \ + mistune `# Markdown Parser` \ + psutil `# Process Utilities` \ + setproctitle `# Good Name` \ + httpie `# HTTP CLI Utility` # install rxvt-unicode script for resizing font on-the-fly mkdir -p "$HOME/.urxvt/ext" -curl -L -o "$HOME/.urxvt/ext/resize-font" https://raw.githubusercontent.com/simmel/urxvt-resize-font/master/resize-font +curl -L -o "$HOME/.urxvt/ext/resize-font" https://raw.githubusercontent.com/lytedev/urxvt-resize-font/master/resize-font diff --git a/scripts/arch-linux/provisioning/3-extras.bash b/scripts/arch-linux/provisioning/3-extras.bash index 3027c17..3334dad 100755 --- a/scripts/arch-linux/provisioning/3-extras.bash +++ b/scripts/arch-linux/provisioning/3-extras.bash @@ -1,11 +1,10 @@ #!/usr/bin/env bash -gpg --recv-keys 0FC3042E345AD05D - pacaur --needed -S \ arc-gtk-theme-git `# GTK Theme` \ elementary-icon-theme `# GUI File Explorer Icons` \ thunar thunar-volman gvfs `# GUI File Explorer + Volume Management/Auto-Mount Disks)` \ + samba `# Sharing Files with other (Windows) PCs` \ gvfs-smb `# Auto-Detect Samba Shares` \ ttf-opensans ttf-dejavu ttf-liberation `# Fonts` \ avr-libc avr-gcc dfu-programmer dfu-util `# Keyboard Programming Utilities` \ @@ -13,20 +12,18 @@ pacaur --needed -S \ gimp inkscape krita `# Image/Vector Editing Applications` \ audacity `# Audio Editing Application` \ cmake `# Cross-Platform Make` \ - irssi `# IRC Client` \ accountsservice `# Mainly for User Avatars with LightDM` \ deluge `# GUI Torrent Client` \ lightdm lightdm-gtk-greeter `# Nice User Login` \ polybar-git `# Bar` \ - php \ + php `# PHP Language` \ nginx `# Web Server` \ + postgresql pgcli `# RDBMS` \ urxvt-perls-git urxvt-resize-font-git `# rxvt-unicode scripts` \ - samba `# Sharing Files with other PCs` \ neofetch `# swag` \ cloc `# For counting lines of code` \ ttf-noto-fonts-simple ttf-noto-fonts-ib noto-fonts-emoji `# Emoji` \ siji-git gohufont artwiz-fonts phallus-fonts-git `# Bitmap Fonts` \ autorandr `# Monitor Helper` \ keybase keybase-gui kbfs `# Keybase Applications` \ - discord `# Chat Application` \ --noconfirm --noedit diff --git a/shell/bash/aliases b/shell/bash/aliases index 8b96a74..94d1798 100644 --- a/shell/bash/aliases +++ b/shell/bash/aliases @@ -94,3 +94,6 @@ alias lsteam="LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/ # override the man commands with vim alias _man="\\man" alias man="vman" + +# neomutt is better +alias mutt="neomutt"