dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 39c88c5bbb776910d99bc9891bf3e446f94c9585
parent 1f5c6989f87fc484d633c64522a7bff89482c109
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Wed, 10 Jan 2018 07:08:45 -0500

Multiple changes

1. Readjust terminal default size to more standard 80 x 24
2. Reorder handler checking in my-open to prevent issues on Debian
3. Fix mailcap by removing */* entry
4. Add Vimish pager bindings to muttrc
5. SSH: Forward X11 when connecting to some hosts

Diffstat:
M.config/xfce4/terminal/terminalrc | 2+-
M.local/bin/my-open | 16+++++++++-------
M.mailcap | 8+++++---
M.muttrc | 8+++++++-
M.ssh/config | 1+
5 files changed, 23 insertions(+), 12 deletions(-)

diff --git a/.config/xfce4/terminal/terminalrc b/.config/xfce4/terminal/terminalrc @@ -6,7 +6,7 @@ MiscBellUrgent=FALSE MiscBordersDefault=TRUE MiscCursorBlinks=TRUE MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK -MiscDefaultGeometry=95x24 +MiscDefaultGeometry=80x24 MiscInheritGeometry=FALSE MiscMenubarDefault=FALSE MiscMouseAutohide=TRUE diff --git a/.local/bin/my-open b/.local/bin/my-open @@ -10,21 +10,23 @@ # # Find handler, if one is available -if which cygstart > /dev/null 2>&1 +if type -p cygstart > /dev/null 2>&1 then handler=cygstart -elif which open > /dev/null 2>&1 -then - handler=open -elif which exo-open > /dev/null 2>&1 +elif type -p exo-open > /dev/null 2>&1 then handler=exo-open -elif which xdg-open > /dev/null 2>&1 +elif type -p xdg-open > /dev/null 2>&1 then handler=xdg-open +# Because of its ambiguity, open (the macOS handler) should always be +# tested last +elif type -p open > /dev/null 2>&1 +then + handler=open else echo "my-open: No suitable handler found" > /dev/stderr exit -1 fi -exec $handler $@ +$handler $@ diff --git a/.mailcap b/.mailcap @@ -1,4 +1,6 @@ text/html; w3m -I %{charset} -T text/html; copiousoutput; -application/pdf; zathura '%s'; test=test -n "$DISPLAY"; -application/pdf; pdftotext '%s' -; copiousoutput; -*/*; my-open '%s'; test=test -n "$DISPLAY"; +application/pdf; pdftotext '%s' -; copiousoutput; test=test -z "$DISPLAY" +application/*; my-open '%s'; needsterminal; test=test -n "$DISPLAY" +image/*; my-open '%s'; needsterminal; test=test -n "$DISPLAY" +audio/*; my-open '%s'; needsterminal; test=test -n "$DISPLAY" +video/*; my-open '%s'; needsterminal; test=test -n "$DISPLAY" diff --git a/.muttrc b/.muttrc @@ -11,7 +11,7 @@ macro index,pager,attach,compose \cb "\ <enter-command> set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<Enter>" \ "call urlview to extract URLs out of a message" -macro generic,pager <F1> "<shell-escape> less /usr/local/Cellar/mutt/1.6.2/share/doc/mutt/manual.txt<Enter>" "show Mutt documentation" +macro generic,pager <F1> "<shell-escape> less /usr/share/doc/mutt/manual.txt<Enter>" "show Mutt documentation" macro index,pager y "<change-folder>?<toggle-mailboxes>" "show incoming mailboxes list" @@ -25,6 +25,12 @@ unset collapse_unread bind browser y exit bind index - collapse-thread bind index _ collapse-all +bind pager j next-line +bind pager <Down> next-line +bind pager k previous-line +bind pager <Up> previous-line +bind pager \Cu half-up +bind pager \Cd half-down mime_lookup application/octet-stream diff --git a/.ssh/config b/.ssh/config @@ -10,6 +10,7 @@ Host dotcom* Host pi raspberrypi HostName raspberrypi.localdomain RemoteForward /run/user/1001/gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent.extra + ForwardX11 yes Host github github.com HostName github.com