Compare commits

...

4 Commits

Author SHA1 Message Date
Orien Vandenbergh
d41f12210e small tweaks 2025-06-03 11:21:26 -04:00
Orien Vandenbergh
fffab990a8 Define a macro to clean up the proofpoint url hacks 2025-06-03 11:19:47 -04:00
Orien Vandenbergh
53d2bcbc11 Add a dotfiles directory, and start configuring stow in it. 2025-05-22 11:21:28 -04:00
Orien Vandenbergh
af76dcce3f Neomutt updates 2025-05-21 11:55:27 -04:00
7 changed files with 85 additions and 11 deletions

View File

@ -0,0 +1,30 @@
# The default stow-ignore settings
# -------------------------------------
# Comments and blank lines are allowed.
RCS
.+,v
CVS
\.\#.+ # CVS conflict files / emacs lock files
\.cvsignore
\.svn
_darcs
\.hg
\.git
\.gitignore
\.gitmodules
.+~ # emacs backup files
\#.*\# # emacs autosave files
^/README.*
^/LICENSE.*
^/COPYING
# -------------------------------------
#
# My customizations
Makefile
\.DS_Store

6
dotfiles/Makefile Normal file
View File

@ -0,0 +1,6 @@
test:
@echo Test mode, run \"make all\" to enact changes
stow -v --no --dotfiles --target ~ .
all:
stow -v --dotfiles --target ~ .

View File

@ -8,7 +8,7 @@ unbind l
bind C-a last-window bind C-a last-window
# Reload configs for faster config testing # Reload configs for faster config testing
bind r source-file ~/.tmux.conf bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded…"
# start numbering windows at 1 # start numbering windows at 1
set -g base-index 1 set -g base-index 1
@ -36,6 +36,17 @@ bind -n M-j select-pane -D
bind -n M-k select-pane -U bind -n M-k select-pane -U
bind -n M-l select-pane -R bind -n M-l select-pane -R
# Set the visual style for a window that received a bell
set-window-option -g window-status-bell-style bg=color167,fg=colour235 # bg=redish, fg=black
# Set up the status bar
set-option -g status-left-length 30
set-option -g status-style fg=colour136,bg=colour235 # fg=brown, bg=black
set-option -g status-left "#[fg=green]tdkvxyvkv7 #[fg=white]☰ #[default]"
set-option -ag status-right " #[fg=white,bg=default]%H:%M#[default] #[fg=white]%Y-%m-%d"
set-option -g status-right " #[fg=white,bg=default]%H:%M#[default] #[fg=white]%Y-%m-%d"
set-window-option -g window-status-current-style fg=colour166,bg=colour235
# Install the tmux plugin manager # Install the tmux plugin manager
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm # git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# List of plugins # List of plugins

View File

@ -30,6 +30,8 @@ macro pager "\e7" "<enter-command>set pager_index_lines=7<enter>" # Chan
macro pager "\e8" "<enter-command>set pager_index_lines=8<enter>" # Change PIL size macro pager "\e8" "<enter-command>set pager_index_lines=8<enter>" # Change PIL size
macro pager "\e9" "<enter-command>set pager_index_lines=9<enter>" # Change PIL size macro pager "\e9" "<enter-command>set pager_index_lines=9<enter>" # Change PIL size
macro pager "\e0" "<enter-command>set pager_index_lines=0<enter>" # Change PIL size macro pager "\e0" "<enter-command>set pager_index_lines=0<enter>" # Change PIL size
macro pager "\ep" "<pipe-message>~/bin/mutt-unproofpoint.py| mdcat -p |less -R<enter>" # attempt view the cleaned message
#macro pager "\ep" "<pipe-message>~/bin/mutt-unproofpoint.py| bat --terminal-width=90 -f<enter>" # attempt view the cleaned message
macro pager "\Cb" "<pipe-message>urlview<enter>" # URL viewer. macro pager "\Cb" "<pipe-message>urlview<enter>" # URL viewer.
macro pager "\Cx\Cb" "<change-folder>?" # Folder list. macro pager "\Cx\Cb" "<change-folder>?" # Folder list.
macro pager "\Cx\Cs" "<pipe-message>cat > ~/" # Save message macro pager "\Cx\Cs" "<pipe-message>cat > ~/" # Save message
@ -48,3 +50,8 @@ set invpipe_decode<enter>" # View
macro generic "\e?" "<shell-escape>less /usr/share/doc/mutt/manual.txt<enter>" macro generic "\e?" "<shell-escape>less /usr/share/doc/mutt/manual.txt<enter>"
macro index "\e?" "<shell-escape>less /usr/share/doc/mutt/manual.txt<enter>" macro index "\e?" "<shell-escape>less /usr/share/doc/mutt/manual.txt<enter>"
macro pager "\e?" "<shell-escape>less /usr/share/doc/mutt/manual.txt<enter>" macro pager "\e?" "<shell-escape>less /usr/share/doc/mutt/manual.txt<enter>"
unbind editor <space>
macro compose \Ca ":source ~/bin/fzfattach.sh|<enter>"
macro pager A |'abook --add-email'\n

View File

@ -1,9 +1,27 @@
text/vcard; mutt_vcard_filter; copiousoutput
text/html; w3m -dump %s; copiousoutput; nametemplate=%s.html
application/x-html; w3m -dump %s; copiousoutput; nametemplate=%s.html
image/jpeg; gthumb %s;
application/octet-stream; mutt-octet-filter %s; copiousoutput
text/x-diff; view %s; needsterminal
text/x-patch; view %s; needsterminal
application/x-gzip; zcat %s; copiousoutput
application/msword; soffice %s; application/msword; soffice %s;
#application/octet-stream; ~/bin/mutt.octet.filter %s; copiousoutput
application/octet-stream; file -b %s; copiousoutput
application/pdf; open -a "Preview" %s;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; open -a "Microsoft Excel" %s
application/x-gzip; zcat %s; copiousoutput
application/x-html; open -a "Firefox" %s; nametemplate=%s.html
application/x-html; w3m -dump %s; copiousoutput; nametemplate=%s.html
image/*; open -a "Preview" %s;
text/html; open -a "Firefox" %s; nametemplate=%s.html
text/html; w3m -dump %s; copiousoutput; nametemplate=%s.html
# This should work, but doesn't
#text/plain; ~/bin/mutt-unproofpoint.py %s; copiousoutput
text/vcard; mutt_vcard_filter; copiousoutput
text/x-diff; view %s; needsterminal
text/x-patch; view %s; needsterminal

View File

@ -8,6 +8,7 @@ set hostname=felurian.guidepointsecurity.com # Name of the localhost
set hidden_host # Hide host details set hidden_host # Hide host details
set alias_file=~/.config/neomutt/aliases # Personal mail aliases set alias_file=~/.config/neomutt/aliases # Personal mail aliases
#set query_command="~/bin/mutt-ldap '%s'" # How to query the company contacts #set query_command="~/bin/mutt-ldap '%s'" # How to query the company contacts
set query_command="abook --mutt-query '%s'" # How to query the company contacts
set postpone=ask-no # Ask about postponing set postpone=ask-no # Ask about postponing
unset move # Keep read mail in inbox, also Gmail moves it automatically unset move # Keep read mail in inbox, also Gmail moves it automatically
set print=ask-no # Ask before printing set print=ask-no # Ask before printing
@ -27,11 +28,11 @@ set mark_old # Don't mark unread new msgs
set mail_check=90 set mail_check=90
set mail_check_recent set mail_check_recent
set timeout=15 set timeout=15
set mbox_type=maildir # mailbox type set mbox_type=mbox # mailbox type
set mbox="!" # Default mailbox. set mbox="!" # Default mailbox.
#set imap_user="orien" # How we gonna log in #set imap_user="orien" # How we gonna log in
#set imap_peek="no" # Mark a message as read, when downloaded #set imap_peek="no" # Mark a message as read, when downloaded
set copy # Keep copies of outgoing mail... #set copy # Keep copies of outgoing mail...
set nobeep # We don't need no beeping software. set nobeep # We don't need no beeping software.
set nosmart_wrap # Don't want smart wrapping. set nosmart_wrap # Don't want smart wrapping.
set nomarkers # Don't want any wrap markers. set nomarkers # Don't want any wrap markers.

View File

@ -4,6 +4,7 @@
# #
#save-hook .* =Archive/`date "+%Y"`/`date "+%m"` #save-hook .* =Archive/`date "+%Y"`/`date "+%m"`
save-hook '=f @analog.com' "=Customers/Analog"
save-hook '~f @nafinc\\.com$' "=Customers/NAF" save-hook '~f @nafinc\\.com$' "=Customers/NAF"
save-hook '~f @newyorklife\\.com$' "=Customers/NYLife" save-hook '~f @newyorklife\\.com$' "=Customers/NYLife"
save-hook '=f @rtx.com' "=Customers/RTX" save-hook '=f @rtx.com' "=Customers/RTX"