Various minor changes and missed fixes

Missed adding authinfo for mbsync along with .bin/isync-auth.sh which uses
gpg to decrypt the mbsync authinfo file and return the password for a
given account. This new authinfo is required because it uses a slightly
different format then the one use for gnus and offlineimap (both of
which are now depreciated and will soon be removed).
Also missed adding mbsync configuration (.mbsyncrc).

Missed adding emacs bookmark file .emacs.d/bookmarks

Added .local/share/applications/transmission-remote.desktop so it can be
set as the default application for torrents and magnet links when using xdg-open

Fixed key binding for url-picker (Urxvt) in .Xresources where there was
a missing colon

Added support for 256 color mimicry in tmux (which doesn't support true
256 colors) (in .xmonad/xmonad.hs when opening emacs-scratch and .tmux.conf)

Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
This commit is contained in:
Collin J. Doering 2014-09-08 01:07:15 -04:00 revīziju iesūtīja Collin J. Doering
vecāks a09010409f
revīzija b3b095701f
8 mainīti faili ar 215 papildinājumiem un 8 dzēšanām

Parādīt failu

@ -65,7 +65,7 @@ URxvt.underlineURLs: true
URxvt.perl-ext-common: default,clipboard,tabbedex,url-picker,keyboard-select,matcher
! Setup url-picker perl-ext
URxvt.keysym.C-M-g perl:url-picker
URxvt.keysym.M-C-g: perl:url-picker
URxvt.urlLauncher: /usr/bin/conkeror
URxvt.matcher.button: 1

32
.bin/isync-auth.sh Executable file
Parādīt failu

@ -0,0 +1,32 @@
#!/bin/zsh
# (C) Copyright Collin J. Doering 2014
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# File: isync-auth.sh
# Author: Collin J. Doering <collin.doering@rekahsoft.ca>
# Date: Jun 13, 2014
# TODO: sed regular expression below will not allow passowords that contain a ". We should allow escaping it
if [[ "x$1" != "x" && -f ~/.mbsync-authinfo.gpg ]]; then
gpg2 -q --for-your-eyes-only --no-tty -d "$HOME/.mbsync-authinfo.gpg" | grep -e "^LOGIN \"$1\".*$" | sed 's/^LOGIN "[^"]*" "\([^"]*\)"$/\1/'
else
# fail silently
exit 1
fi
# exit success
exit 0

Parādīt failu

@ -2,9 +2,107 @@
;;; This format is meant to be slightly human-readable;
;;; nevertheless, you probably don't want to edit it.
;;; -*- End Of Bookmark File Format Version Stamp -*-
(("org-capture-last-stored"
(filename . "~/.org/notes.org")
(front-context-string . "*** Go get the c")
(rear-context-string . "n emacs further\n")
(position . 151))
)
(#1=(#("Blog" 0 4
(bmkp-full-record #1#))
(buffer-name . #3="~/.code/my-projects/www/blog-rekahsoft-ca/")
(front-context-string . "blog-rekahsoft-c")
(rear-context-string . "69 Sep 1 05:37 ")
(front-context-region-string)
(rear-context-region-string)
(visits . 0)
(time . #2=(21516 10507 539531 351000))
(created . #2#)
(position . 256)
(filename . #3#)
(dired-directory . "~/.code/my-projects/www/blog-rekahsoft-ca/")
(dired-marked)
(dired-switches . "-al")
(dired-subdirs)
(dired-hidden-dirs)
(handler . bmkp-jump-dired))
#1=(#(".racketrc" 0 9
(bmkp-full-record #1#))
(tags "racket" "config")
(filename . "~/.racketrc")
(buffer-name . ".racketrc")
(front-context-string . ";; Racket config")
(rear-context-string)
(front-context-region-string)
(rear-context-region-string)
(visits . 0)
(time . #2=(21515 52488 191887 274000))
(created . #2#)
(position . 1))
#1=(#(".conkerorrc" 0 11
(bmkp-full-record #1#))
(tags "config")
(filename . "~/.conkerorrc")
(buffer-name . ".conkerorrc")
(front-context-string . "// File: ~/.conk")
(rear-context-string)
(front-context-region-string)
(rear-context-region-string)
(visits . 0)
(time . #2=(21515 52458 692233 554000))
(created . #2#)
(position . 1))
#1=(#("rkd-conf" 0 8
(bmkp-full-record #1#))
(tags "config")
(buffer-name . #2="~/.rkd-conf/")
(front-context-string . ".\n drwx--x--- 9")
(rear-context-string . "96 Sep 6 01:48 ")
(front-context-region-string)
(rear-context-region-string)
(visits . 1)
(time 21515 58758 189800 941000)
(created 21515 52448 522407 938000)
(position . 125)
(filename . #2#)
(dired-directory . "~/.rkd-conf/")
(dired-marked)
(dired-switches . "-al")
(dired-subdirs)
(dired-hidden-dirs)
(handler . bmkp-jump-dired))
#1=(#("snippets" 0 8
(bmkp-full-record #1#))
(tags "emacs" "config")
(buffer-name . "snippets")
(front-context-string . ".\n drwxr-xr-x 1")
(rear-context-string . "96 Aug 21 05:50 ")
(front-context-region-string)
(rear-context-region-string)
(visits . 1)
(time 21515 59003 434991 931000)
(created 21515 52423 153453 836000)
(position . 131)
(filename . "/home/collin/.emacs.d/snippets/")
(dired-directory . "~/.emacs.d/snippets/")
(dired-marked)
(dired-switches . "-al")
(dired-subdirs)
(dired-hidden-dirs)
(handler . bmkp-jump-dired))
#1=(#(".emacs" 0 6
(bmkp-full-record #1#))
(tags "emacs" "config")
(filename . "~/.emacs")
(buffer-name . ".emacs")
(front-context-string . ";; Date: Aug 19,")
(rear-context-string)
(front-context-region-string)
(rear-context-region-string)
(visits . 0)
(time 21515 51744 740365 99000)
(created 21515 51744 740365 99000)
(position . 1))
#1=(#("Notes" 0 5
(bmkp-full-record #1#))
(time 21515 58453 186826 365000)
(visits . 0)
(filename . "~/.org/notes.org")
(front-context-string . "*** Go get the c")
(rear-context-string . "n emacs further\n")
(position . 151))
)

Parādīt failu

@ -0,0 +1,9 @@
[Desktop Entry]
Name=transmission-remote
Exec=transmission-remote -a %u
Icon=transmission
Terminal=false
Type=Application
Categories=Network;FileTransfer;P2P;
StartupNotify=false
MimeType=application/x-bittorrent;x-scheme-handler/magnet;

Binārs
.mbsync-authinfo.gpg Normal file

Bināro failu nav iespējams attēlot.

65
.mbsyncrc Normal file
Parādīt failu

@ -0,0 +1,65 @@
IMAPAccount collin.doering-gmail
# Address to connect to
Host imap.gmail.com
User collin.doering@gmail.com
PassCmd "isync-auth.sh collin.doering-gmail"
# Use SSL
UseIMAPS yes
# The following line should work. If get certificate errors, uncomment the two following lines and read the "Troubleshooting" section.
CertificateFile /etc/ssl/certs/ca-certificates.crt
#CertificateFile ~/.cert/imap.gmail.com.pem
#CertificateFile ~/.cert/Equifax_Secure_CA.pem
IMAPStore collin.doering-gmail-remote
Account collin.doering-gmail
MaildirStore collin.doering-gmail-local
# The trailing "/" is important
Path ~/.mail/collin.doering-gmail/
Inbox ~/.mail/collin.doering-gmail/Inbox
IMAPAccount rekahsoft-gmail
# Address to connect to
Host imap.gmail.com
User rekahsoft@gmail.com
PassCmd "isync-auth.sh rekahsoft-gmail"
# Use SSL
UseIMAPS yes
# The following line should work. If get certificate errors, uncomment the two following lines and read the "Troubleshooting" section.
CertificateFile /etc/ssl/certs/ca-certificates.crt
#CertificateFile ~/.cert/imap.gmail.com.pem
#CertificateFile ~/.cert/Equifax_Secure_CA.pem
IMAPStore rekahsoft-gmail-remote
Account rekahsoft-gmail
MaildirStore rekahsoft-gmail-local
# The trailing "/" is important
Path ~/.mail/rekahsoft-gmail/
Inbox ~/.mail/rekahsoft-gmail/Inbox
Channel collin.doering-gmail
Master :collin.doering-gmail-remote:
Slave :collin.doering-gmail-local:
# Exclude everything under the internal [Gmail] folder, except the interesting folders
#Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail" "[Gmail]/Spam"
# Or include everything
Patterns *
# Automatically create missing mailboxes, both locally and on the server
Create Both
# Save the synchronization state files in the relevant directory
SyncState *
Channel rekahsoft-gmail
Master :rekahsoft-gmail-remote:
Slave :rekahsoft-gmail-local:
# Exclude everything under the internal [Gmail] folder, except the interesting folders
Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail" "[Gmail]/Spam"
# Or include everything
#Patterns *
# Automatically create missing mailboxes, both locally and on the server
Create Both
# Save the synchronization state files in the relevant directory
SyncState *

Parādīt failu

@ -6,6 +6,9 @@
unbind C-b
set -g prefix C-t
;; Mimic 256 colors
set -g default-terminal "screen-256color"
# Toggle last window like screen
bind-key C-t last-window

Parādīt failu

@ -421,7 +421,7 @@ scratchpads = [ NS "emacs-scratch" spawnEmacsScratch findEmacsScratch manageEmac
findMcScratch = resource =? "mc-scratch"
findNcmpcppScratch = resource =? "ncmpcpp-scratch"
spawnEmacsScratch = myTerminal ++ " -name emacs-scratch -pe -tabbedex -e tmux new-session -s emacs-scratch \"emacsclient -nw\""
spawnEmacsScratch = myTerminal ++ " -name emacs-scratch -pe -tabbedex -e tmux -2 new-session -s emacs-scratch \"emacsclient -nw\""
spawnMaintenanceTerminal = myTerminal ++ " -name scratchpad -bg black"
spawnScreenTerminal = myTerminal ++ " -name screen-scratch -bg black"
spawnMcScratch = myTerminal ++ " -name mc-scratch -pe -tabbedex -e mc"