diff options
Diffstat (limited to '.config')
56 files changed, 979 insertions, 157 deletions
diff --git a/.config/Makefile b/.config/Makefile new file mode 100644 index 0000000..829b820 --- /dev/null +++ b/.config/Makefile @@ -0,0 +1,40 @@ +#!/usr/bin/make -f + +SHELL = /bin/bash + +GITDIR = ${HOME}/.git + +targets = \ + ${GITDIR}/info/exclude \ + ${HOME}/.folders \ + ${XDG_CACHE_HOME}/config-symlinks/cookie \ + ${XDG_CACHE_HOME}/cron/cookie + +all: $(targets) +clean: + rm -f $(targets) + +${HOME}/.folders: ${HOME}/Maildir + ( echo '..'; find $< -maxdepth 2 -type f -name "maildirfolder" -printf '%h\n'|sed -r 's@.*/(.*\.)(.*)@.\1\2@' )|sort>'$@' +${GITDIR}/info/exclude: ${HOME}/.git.info.exclude.in $(shell echo .??*/) + ( cat $<; find $^ -type f -name 'CACHEDIR.TAG' -printf '%h\n'|sed 's@^\./@/@' ) > $@ + +${XDG_CACHE_HOME}/cron/cookie: ${XDG_CONFIG_HOME}/cron + -(cat $^/*; echo) | crontab - 2>/dev/null + mkdir -p '$(@D)' + date > '$@' + +${XDG_CACHE_HOME}/config-symlinks/cookie: ${XDG_CONFIG_HOME}/symlinks + config-symlinks + mkdir -p '$(@D)' + date > '$@' + +${HOME}/Maildir: + mkdir -p '$@'/{cur,new,tmp} +${HOME}/Maildir/%: | ${HOME}/Maildir + mkdir -p '$@'/{cur,new,tmp} + touch '$@'/maildirfolder + +.PHONY: FORCE PHONY +FORCE: ; +PHONY: ; diff --git a/.config/X11/defaults b/.config/X11/defaults index 07d35b4..252170c 100644 --- a/.config/X11/defaults +++ b/.config/X11/defaults @@ -1,12 +1,17 @@ -URxvt.background: #000000 -URxvt.foreground: #CCCCCC +# -*- Mode: Conf-xdefaults -*- + +# "native" colors +#URxvt.background: #000000 +#URxvt.foreground: #CCCCCC +# Tango-dark +URxvt.background: #2E3436 +URxvt.foreground: #EEEEEC URxvt.scrollstyle: plain URxvt.scrollBar_floating: true URxvt.font: xft:Monospace-8 URxvt.cursorBlink: true -URxvt.termName: xterm-256color URxvt.pastableTabs: true URxvt.scrollTtyOutput: false diff --git a/.config/X11/modmap b/.config/X11/modmap index e4ade24..1736e09 100644 --- a/.config/X11/modmap +++ b/.config/X11/modmap @@ -1,7 +1,12 @@ +! My desktop doesn't have a super key, so I map Caps_Lock to Super_L +! Also, use Caps_Lock for the compose key remove lock = Caps_Lock -keysym Caps_Lock = Super_L - -keycode 135 = Super_R +keysym Caps_Lock = Super_L Multi_key +! All of these are my "super". Silly I have so many... clear mod4 add mod4 = Super_L Super_R Hyper_L Hyper_R Menu + + +! Note to future me: +! The modifiers are: << Shift, Lock, Control, Mod{1..5} >> and are NOT case sensitive diff --git a/.config/bash/aliases.sh b/.config/bash/aliases.sh index 0964a83..aabd073 100644 --- a/.config/bash/aliases.sh +++ b/.config/bash/aliases.sh @@ -6,23 +6,23 @@ # Set up colors and settings for ls/dir/vdir # ###################################################################### if [ -x "`which dircolors`" ]; then - eval "`dircolors -b`" - alias ls='ls -1v --color=auto' - alias dir='dir -v --color=auto' - alias vdir='vdir -v--color=auto' + eval "`dircolors -b`" + alias ls='ls -1v --color=auto' + alias dir='dir -v --color=auto' + alias vdir='vdir -v--color=auto' - for xgrep in ${PATH//:/\/*grep }/*grep; do - if [ -f "$xgrep" ]; then - xgrep=`basename "$xgrep"` - if [ "$xgrep" != pgrep ]; then - alias $xgrep="$xgrep --color=auto" - fi - fi - done + for xgrep in ${PATH//:/\/*grep }/*grep; do + if [ -f "$xgrep" ]; then + xgrep=`basename "$xgrep"` + if [ "$xgrep" != pgrep ]; then + alias $xgrep="$xgrep --color=auto" + fi + fi + done else - alias ls='ls -1v' - alias dir='dir -v' - alias vdir='vdir -v' + alias ls='ls -1v' + alias dir='dir -v' + alias vdir='vdir -v' fi ###################################################################### @@ -36,7 +36,6 @@ alias l='ls -CF' # Some preferences for miscellaneous stuff # ###################################################################### #alias rm='gvfs-trash' -alias ssh='ssh -XC' #alias sed='sed --follow-symlinks' # breaks sed 4.2.2 alias tree='tree --charset utf8' alias cd=pushd diff --git a/.config/bash/rc.sh b/.config/bash/rc.sh index faf8116..447796a 100644 --- a/.config/bash/rc.sh +++ b/.config/bash/rc.sh @@ -1,15 +1,10 @@ -# ~/.bashrc: executed by bash(1) for non-login shells. +# ~/.bashrc: executed by bash(1) for interactive non-login shells. # I include this file for all interactive invocations of bash(1), whether # they are login shells or not. # If not running interactively, don't do anything [[ $- != *i* ]] && return -# set variable identifying the chroot you work in (used in the prompt below) -if [[ -z "$debian_chroot" ]] && [[ -r /etc/debian_chroot ]]; then - debian_chroot="$(cat /etc/debian_chroot)" -fi - # Why is this not on by default? # "We have a cached value, but it isn't valid anymore. Should we trash it?" # "Duh, yes!" @@ -45,11 +40,10 @@ term-title() { } make_prompt() { - local _CHROOT='${debian_chroot:+($debian_chroot)}' - echo "${BOLD}${_CHROOT}${GREEN}\u@\h${RESET}${BOLD}${BLUE}:\w${RESET}" + echo "${BOLD}${GREEN}\u@\h${BLUE}:\w${RESET}" } -if [[ -x /usr/bin/tput ]] && tput setaf 1 >&/dev/null; then +if tput setaf 1 &>/dev/null; then # We have color support; assume it's compliant with Ecma-48 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such # a case would tend to support setf rather than setaf.) @@ -60,13 +54,13 @@ if [[ -x /usr/bin/tput ]] && tput setaf 1 >&/dev/null; then BLUE="$(tput setaf 4)" _STATUS="${BOLD}[" - _STATUS+='$(v=$?; if [[ $v = 0 ]]; then c='"'${GREEN}'"'; else c='"${RED}"'; fi; printf %s%03i $c $v)' + _STATUS+="\$(v=\$?; [[ \$v = 0 ]] && c='${GREEN}' || c='${RED}'; printf %s%03i \$c \$v)" _STATUS+="${RESET}${BOLD}]${RESET}" else _STATUS='[$?]' fi PS1="${_STATUS} $(make_prompt)"'\n\$ ' -unset RESET BOLD RED GREEN BLUE _STATUS use_color +unset RESET BOLD RED GREEN BLUE _STATUS PS1="$(term-title $(make_prompt))$PS1" unset make_prompt diff --git a/.config/cron/crontab b/.config/cron/crontab deleted file mode 100644 index e396cef..0000000 --- a/.config/cron/crontab +++ /dev/null @@ -1,3 +0,0 @@ -# m h dom mon dow command -*/5 * * * * cd $HOME/.config && make -*/5 * * * * offlineimap-runner 2 -u quiet diff --git a/.config/cron/make-config b/.config/cron/make-config new file mode 100644 index 0000000..448475b --- /dev/null +++ b/.config/cron/make-config @@ -0,0 +1,2 @@ +# m h dom mon dow command +*/5 * * * * . $HOME/.local/lib/path.sh && . $HOME/.local/lib/xdg.sh && make -C $XDG_CONFIG_HOME diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc new file mode 100644 index 0000000..fc93a12 --- /dev/null +++ b/.config/dunst/dunstrc @@ -0,0 +1,92 @@ +# -*- Mode: conf -*- +[global] + + # Markup syntax: + # http://developer.gnome.org/pango/stable/PangoMarkupFormat.html + # Format string variables: + # %a appname + # %s summary + # %b body + # %i iconname (including its path) + # %I iconname (without its path) + # %p progress value if set ([ 0%] to [100%]) or nothing + + # Message format + format = "<b>%s</b>\n%b" + allow_markup = yes + ignore_newline = no + # Message word-wrap/scroll + word_wrap = yes # Split lines... + bounce_freq = 0 # ...or scroll long lines? + # Window settings + monitor = 0 # Default monitor + follow = mouse # Follow monitors? (mouse/keyboard/none) + geometry = "300x5-0+16" # [{width}]x{height}][+/-{x}+/-{y}] + transparency = 10 + # Layout settings + padding = 8 # Vertical padding + horizontal_padding = 8 # Horizontal padding + separator_height = 2 # Height of line between notifications + separator_color = frame # (auto/foreground/frame/<X color>) + # Font settings + font = Monospace 8 + line_height = 0 # if less than font height, font height is used + allignment = left # (left/center/right) + # Misc. + sort = yes # Sort messages by urgency + indicate_hidden = yes + show_age_threshold = 60 # -1 to disable + idle_threshold = 120 # Don't timeout messages if the user is gone + sticky_history = yes # Don't timeout messages popped up from history + startup_notification = false # mostly for debugging + # External programs + dmenu = wimenu -p dunst: + browser = v-www-browser + +[frame] + width = 1 + color = "#eeeeec" + +[shortcuts] + close = ctrl+space + close_all = ctrl+shift+space + history = ctrl+grave + context = ctrl+shift+period + +[urgency_low] + background = "#2e3436" + foreground = "#babdb6" + timeout = 10 + +[urgency_normal] + background = "#555753" + foreground = "#eeeeec" + timeout = 10 + +[urgency_critical] + background = "#cc0000" + foreground = "#eeeeec" + timeout = 0 + + +# Every section that isn't one of the above is interpreted as a rules +# to override settings for certain messages. + +# Filters: (shell-like globbing will get expanded) +# appname +# summary +# body +# icon +# Overrides: +# timeout +# urgency +# foreground +# background +# format (blank to not display) +# Scripting: +# If you set 'script=', the value will be called like: +# script appname summary body icon urgency +# Where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: It might be helpful to run dunst -print in a terminal in order to find +# fitting options for filters. diff --git a/.config/emacs/custom.el b/.config/emacs/custom.el index dad3d8d..47bf654 100644 --- a/.config/emacs/custom.el +++ b/.config/emacs/custom.el @@ -3,11 +3,16 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(custom-enabled-themes (quote (zenburn))) - '(custom-safe-themes (quote ("1e7e097ec8cb1f8c3a912d7e1e0331caeed49fef6cff220be63bd2a6ba4cc365" "71b172ea4aad108801421cc5251edb6c792f3adbaecfa1c52e94e3d99634dee7" "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" default))) + '(ansi-color-faces-vector [default bold shadow italic underline bold bold-italic bold]) + '(ansi-color-names-vector (vector "#ffffff" "#ff9da4" "#d1f1a9" "#ffeead" "#bbdaff" "#ebbbff" "#99ffff" "#002451")) + '(custom-enabled-themes (quote (tango-dark))) + '(custom-safe-themes (quote ("9f443833deb3412a34d2d2c912247349d4bd1b09e0f5eaba11a3ea7872892000" "bb08c73af94ee74453c90422485b29e5643b73b05e8de029a6909af6a3fb3f58" "82d2cac368ccdec2fcc7573f24c3f79654b78bf133096f9b40c20d97ec1d8016" "1b8d67b43ff1723960eb5e0cba512a2c7a2ad544ddb2533a90101fd1852b426e" "628278136f88aa1a151bb2d6c8a86bf2b7631fbea5f0f76cba2a0079cd910f7d" "06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" "1e7e097ec8cb1f8c3a912d7e1e0331caeed49fef6cff220be63bd2a6ba4cc365" "71b172ea4aad108801421cc5251edb6c792f3adbaecfa1c52e94e3d99634dee7" "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" default))) '(erc-nick "lukeshu") '(explicit-shell-file-name "/bin/bash") + '(fci-rule-color "#00346e") + '(global-whitespace-mode nil) '(inhibit-startup-screen t) + '(maildir-mail-dir "~/Maildir") '(mdmua-maildir "~/Maildir") '(minibuffer-prompt-properties (quote (read-only t point-entered minibuffer-avoid-prompt face minibuffer-prompt))) '(page-break-lines-char 45) @@ -15,8 +20,16 @@ '(ruby-deep-indent-paren nil) '(safe-local-variable-values (quote ((Nginx-indent-tabs-mode) (Nginx-indent-level . 4) (Nginx-indent-level . 8)))) '(scroll-bar-mode nil) + '(send-mail-function (quote smtpmail-send-it)) '(sh-basic-offset 8) - '(sh-indent-comment t)) + '(sh-indent-comment t) + '(smtpmail-smtp-server "plus.smtp.mail.yahoo.com") + '(smtpmail-smtp-service 587) + '(vc-annotate-background "#2b2b2b") + '(vc-annotate-color-map (quote ((20 . "#bc8383") (40 . "#cc9393") (60 . "#dfaf8f") (80 . "#d0bf8f") (100 . "#e0cf9f") (120 . "#f0dfaf") (140 . "#5f7f5f") (160 . "#7f9f7f") (180 . "#8fb28f") (200 . "#9fc59f") (220 . "#afd8af") (240 . "#bfebbf") (260 . "#93e0e3") (280 . "#6ca0a3") (300 . "#7cb8bb") (320 . "#8cd0d3") (340 . "#94bff3") (360 . "#dc8cc3")))) + '(vc-annotate-very-old-color "#dc8cc3") + '(wl-init-file "~/.emacs.d/wl.el") + '(wl-score-files-directory "~/.emacs.d/elmo")) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 402957a..2a7645f 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -1,6 +1,6 @@ ;; Preliminary settings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(set-face-attribute 'default nil :height 75) +(set-face-attribute 'default nil :height 80) (setq notify-method 'notify-via-libnotify) (add-to-list 'load-path "~/.emacs.d/") (add-to-list 'load-path "~/.emacs.d/el-get/el-get") @@ -91,11 +91,12 @@ ;(load "mdmua") (load "emacsutils") +(set-default 'truncate-lines t) (tool-bar-mode -1) (ido-mode t) (show-paren-mode 1) -(setq org-hide-leading-stars t) (setq org-log-done 'time) +(setq gamegrid-user-score-file-directory "/var/games/emacs/") ;(xclip-mode 1) (load "whitespace") @@ -201,6 +202,8 @@ (add-to-list 'auto-mode-alist '("PKGBUILD" . sh-mode)) (add-to-list 'auto-mode-alist '("SRCBUILD" . sh-mode)) +(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) +(add-to-list 'auto-mode-alist '("\\.ronn\\'" . markdown-mode)) ;(require 'flymake) ;(add-hook 'php-mode-hook (lambda() (flymake-mode 1))) @@ -209,3 +212,29 @@ ;(setq tramp-debug-buffer t) ;(setq tramp-verbose 10) + +;; (add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e") +;; (require 'mu4e) +;; (require 'mu4e-speedbar) + +;; (setq +;; mu4e-maildir "~/Maildir" ;; top-level Maildir +;; mu4e-sent-folder "/.Sent" ;; folder for sent messages +;; mu4e-drafts-folder "/.Draft" ;; unfinished messages +;; mu4e-trash-folder "/.Trash" ;; trashed messages +;; mu4e-refile-folder "/archive") ;; saved messages +;; (setq mu4e-get-mail-command "offlineimap") +;; (setq mu4e-use-fancy-chars "t") +;; ;; enable inline images +;; (setq mu4e-view-show-images t) +;; ;; use imagemagick, if available +;; (when (fboundp 'imagemagick-register-types) +;; (imagemagick-register-types)) + + +(defun sm-try-smerge () + (save-excursion + (goto-char (point-min)) + (when (re-search-forward "^<<<<<<< " nil t) + (smerge-mode 1)))) +(add-hook 'find-file-hook 'sm-try-smerge t) diff --git a/.config/emacs/wl.el b/.config/emacs/wl.el new file mode 100644 index 0000000..a169249 --- /dev/null +++ b/.config/emacs/wl.el @@ -0,0 +1,77 @@ +;; mode:-*-emacs-lisp-*- + +(setq user-mail-address "lukeshu@sbcglobal.net") + +;; wanderlust +(setq + ;; Misc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + wl-local-domain "lukeshu.ath.cx" + wl-icon-directory "~/.emacs.d/el-get/wanderlust/icons" + + ;; Network ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ;; This only deals with sending--I use offlineimap to fetch + wl-draft-send-mail-function 'wl-draft-send-mail-with-smtp + ;; The following settings are Yahoo!'s SMTP servers: + wl-smtp-connection-type (quote ssl) + wl-smtp-authenticate-type "login" + wl-smtp-posting-server "plus.smtp.mail.yahoo.com" + ;wl-smtp-posting-server "outbound.att.net" + wl-smtp-posting-port 465 + wl-smtp-posting-user user-mail-address + wl-message-id-domain user-mail-address + + ;; Folders/File system ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + elmo-msgdb-directory "~/.emacs.d/elmo" ;; where elmo keeps all its stuff + elmo-cache-directory "~/.emacs.d/elmo-cache" ;; where elmo keeps all its stuff + elmo-maildir-folder-path "~/Maildir" ;; where I store my mail + + ;; note: all below are dirs (Maildirs) under elmo-maildir-folder-path + ;; the '.'-prefix is for marking them as maildirs + wl-fcc "..Sent" ;; sent msgs go to the "sent"-folder + wl-default-folder "..Ham" ;; my main inbox + wl-draft-folder "..Draft" ;; store drafts in 'postponed' + wl-trash-folder "..Trash" ;; put trash in 'trash' + wl-spam-folder "..Bulk Mail" ;; put spam in 'Bulk Mail' + wl-queue-folder "..queue" ;; we don't use this + + ;; check this folder periodically, and update modeline + ;wl-biff-check-folder-list '(".todo") ;; check every 180 seconds + ;; (default: wl-biff-check-interval) + + ;wl-folder-hierarchy-access-folders '("\.*") + wl-folder-hierarchy-access-folders '( + "^.\\([^/.]+[/.]\\)*[^/.]+\\(:\\|@\\|$\\)" + "^-[^.]*\\(:\\|@\\|$\\)" + "^@$" + "^'$") + + ;; Writing + wl-from (concat user-full-name " <" user-mail-address ">") ;; From: line + ;;wl-organization "Foo Corp" + wl-fcc-force-as-read t ;; mark sent messages as read + mime-edit-split-message nil ;; don't split long messages + + ;; Reading ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + wl-stay-folder-window t ;; show the folder pane (left) + wl-folder-window-width 35 ;; + wl-message-auto-reassemble-message/partial t ;; reasemble split messages + + wl-message-ignored-field-list '("^.*:") ;; default to hiding all headers + wl-message-visible-field-list ;; but then display these + '("^\\(To\\|Cc\\):" + "^Subject:" + "^\\(From\\|Reply-To\\):" + "^Organization:" + "^Message-Id:" + "^\\(Posted\\|Date\\):" + "^List-ID:" + ) + wl-message-sort-field-list ;; in this order + '("^Date" + "^From" + "^Organization:" + "^X-Attribution:" + "^Subject" + "^To" + "^Cc") + ) diff --git a/.config/git/config b/.config/git/config new file mode 100644 index 0000000..218b006 --- /dev/null +++ b/.config/git/config @@ -0,0 +1,14 @@ +[user] + name = Luke Shumaker + email = LukeShu@sbcglobal.net +[color] + ui = auto +[sendemail] + smtpencryption = ssl + smtpserver = plus.smtp.mail.yahoo.com + smtpuser = lukeshu@sbcglobal.net + smtpserverport = 465 +[push] + default = matching +[alias] + lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative diff --git a/.config/git/ignore b/.config/git/ignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/git/ignore diff --git a/.config/gpg/gpg.conf b/.config/gpg/gpg.conf new file mode 100644 index 0000000..f43a58e --- /dev/null +++ b/.config/gpg/gpg.conf @@ -0,0 +1,242 @@ +# Options for GnuPG +# Copyright 1998, 1999, 2000, 2001, 2002, 2003, +# 2010 Free Software Foundation, Inc. +# +# This file is free software; as a special exception the author gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# This file is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# Unless you specify which option file to use (with the command line +# option "--options filename"), GnuPG uses the file ~/.gnupg/gpg.conf +# by default. +# +# An options file can contain any long options which are available in +# GnuPG. If the first non white space character of a line is a '#', +# this line is ignored. Empty lines are also ignored. +# +# See the man page for a list of options. + +# Uncomment the following option to get rid of the copyright notice + +no-greeting + +# If you have more than 1 secret key in your keyring, you may want to +# uncomment the following option and set your preferred keyid. + +default-key D4FFBFC9 + +# If you do not pass a recipient to gpg, it will ask for one. Using +# this option you can encrypt to a default key. Key validation will +# not be done in this case. The second form uses the default key as +# default recipient. + +#default-recipient some-user-id +#default-recipient-self + +# Use --encrypt-to to add the specified key as a recipient to all +# messages. This is useful, for example, when sending mail through a +# mail client that does not automatically encrypt mail to your key. +# In the example, this option allows you to read your local copy of +# encrypted mail that you've sent to others. + +#encrypt-to some-key-id + +# By default GnuPG creates version 4 signatures for data files as +# specified by OpenPGP. Some earlier (PGP 6, PGP 7) versions of PGP +# require the older version 3 signatures. Setting this option forces +# GnuPG to create version 3 signatures. + +#force-v3-sigs + +# Because some mailers change lines starting with "From " to ">From " +# it is good to handle such lines in a special way when creating +# cleartext signatures; all other PGP versions do it this way too. + +#no-escape-from-lines + +# If you do not use the Latin-1 (ISO-8859-1) charset, you should tell +# GnuPG which is the native character set. Please check the man page +# for supported character sets. This character set is only used for +# metadata and not for the actual message which does not undergo any +# translation. Note that future version of GnuPG will change to UTF-8 +# as default character set. In most cases this option is not required +# as GnuPG is able to figure out the correct charset at runtime. + +charset utf-8 + +# Group names may be defined like this: +# group mynames = paige 0x12345678 joe patti +# +# Any time "mynames" is a recipient (-r or --recipient), it will be +# expanded to the names "paige", "joe", and "patti", and the key ID +# "0x12345678". Note there is only one level of expansion - you +# cannot make an group that points to another group. Note also that +# if there are spaces in the recipient name, this will appear as two +# recipients. In these cases it is better to use the key ID. + +#group mynames = paige 0x12345678 joe patti + +# Lock the file only once for the lifetime of a process. If you do +# not define this, the lock will be obtained and released every time +# it is needed, which is usually preferable. + +#lock-once + +# GnuPG can send and receive keys to and from a keyserver. These +# servers can be HKP, email, or LDAP (if GnuPG is built with LDAP +# support). +# +# Example HKP keyserver: +# hkp://keys.gnupg.net +# hkp://subkeys.pgp.net +# +# Example email keyserver: +# mailto:pgp-public-keys@keys.pgp.net +# +# Example LDAP keyservers: +# ldap://keyserver.pgp.com +# +# Regular URL syntax applies, and you can set an alternate port +# through the usual method: +# hkp://keyserver.example.net:22742 +# +# Most users just set the name and type of their preferred keyserver. +# Note that most servers (with the notable exception of +# ldap://keyserver.pgp.com) synchronize changes with each other. Note +# also that a single server name may actually point to multiple +# servers via DNS round-robin. hkp://keys.gnupg.net is an example of +# such a "server", which spreads the load over a number of physical +# servers. To see the IP address of the server actually used, you may use +# the "--keyserver-options debug". + +#keyserver hkp://keys.gnupg.net +#keyserver mailto:pgp-public-keys@keys.nl.pgp.net +#keyserver ldap://keyserver.pgp.com + +#keyserver hkps://keys.indymedia.org +#keyserver-options ca-cert-file=/etc/ssl/certs/cacert.org.pem + +keyserver hkps://zimmermann.mayfirst.org +keyserver-options ca-cert-file=/home/luke/.gnupg/mfpl.crt + +# Common options for keyserver functions: +# +# include-disabled : when searching, include keys marked as "disabled" +# on the keyserver (not all keyservers support this). +# +# no-include-revoked : when searching, do not include keys marked as +# "revoked" on the keyserver. +# +# verbose : show more information as the keys are fetched. +# Can be used more than once to increase the amount +# of information shown. +# +# use-temp-files : use temporary files instead of a pipe to talk to the +# keyserver. Some platforms (Win32 for one) always +# have this on. +# +# keep-temp-files : do not delete temporary files after using them +# (really only useful for debugging) +# +# http-proxy="proxy" : set the proxy to use for HTTP and HKP keyservers. +# This overrides the "http_proxy" environment variable, +# if any. +# +# auto-key-retrieve : automatically fetch keys as needed from the keyserver +# when verifying signatures or when importing keys that +# have been revoked by a revocation key that is not +# present on the keyring. +# +# no-include-attributes : do not include attribute IDs (aka "photo IDs") +# when sending keys to the keyserver. + +#keyserver-options auto-key-retrieve + +# Display photo user IDs in key listings + +# list-options show-photos + +# Display photo user IDs when a signature from a key with a photo is +# verified + +# verify-options show-photos + +# Use this program to display photo user IDs +# +# %i is expanded to a temporary file that contains the photo. +# %I is the same as %i, but the file isn't deleted afterwards by GnuPG. +# %k is expanded to the key ID of the key. +# %K is expanded to the long OpenPGP key ID of the key. +# %t is expanded to the extension of the image (e.g. "jpg"). +# %T is expanded to the MIME type of the image (e.g. "image/jpeg"). +# %f is expanded to the fingerprint of the key. +# %% is %, of course. +# +# If %i or %I are not present, then the photo is supplied to the +# viewer on standard input. If your platform supports it, standard +# input is the best way to do this as it avoids the time and effort in +# generating and then cleaning up a secure temp file. +# +# If no photo-viewer is provided, GnuPG will look for xloadimage, eog, +# or display (ImageMagick). On Mac OS X and Windows, the default is +# to use your regular JPEG image viewer. +# +# Some other viewers: +# photo-viewer "qiv %i" +# photo-viewer "ee %i" +# +# This one saves a copy of the photo ID in your home directory: +# photo-viewer "cat > ~/photoid-for-key-%k.%t" +# +# Use your MIME handler to view photos: +# photo-viewer "metamail -q -d -b -c %T -s 'KeyID 0x%k' -f GnuPG" + +# Passphrase agent +# +# We support the old experimental passphrase agent protocol as well as +# the new Assuan based one (currently available in the "newpg" package +# at ftp.gnupg.org/gcrypt/alpha/aegypten/). To make use of the agent, +# you have to run an agent as daemon and use the option +# +use-agent +# +# which tries to use the agent but will fallback to the regular mode +# if there is a problem connecting to the agent. The normal way to +# locate the agent is by looking at the environment variable +# GPG_AGENT_INFO which should have been set during gpg-agent startup. +# In certain situations the use of this variable is not possible, thus +# the option +# +# --gpg-agent-info=<path>:<pid>:1 +# +# may be used to override it. + +# Automatic key location +# +# GnuPG can automatically locate and retrieve keys as needed using the +# auto-key-locate option. This happens when encrypting to an email +# address (in the "user@example.com" form), and there are no +# user@example.com keys on the local keyring. This option takes the +# following arguments, in the order they are to be tried: +# +# cert = locate a key using DNS CERT, as specified in RFC-4398. +# GnuPG can handle both the PGP (key) and IPGP (URL + fingerprint) +# CERT methods. +# +# pka = locate a key using DNS PKA. +# +# ldap = locate a key using the PGP Universal method of checking +# "ldap://keys.(thedomain)". For example, encrypting to +# user@example.com will check ldap://keys.example.com. +# +# keyserver = locate a key using whatever keyserver is defined using +# the keyserver option. +# +# You may also list arbitrary keyservers here by URL. +# +# Try CERT, then PKA, then LDAP, then hkp://subkeys.net: +#auto-key-locate cert pka ldap hkp://subkeys.pgp.net diff --git a/.config/gtk-2.0/.gitignore b/.config/gtk-2.0/.gitignore new file mode 100644 index 0000000..67b1609 --- /dev/null +++ b/.config/gtk-2.0/.gitignore @@ -0,0 +1 @@ +gtkfilechooser.ini diff --git a/.config/gtk-2.0/gtkfilechooser.ini b/.config/gtk-2.0/gtkfilechooser.ini deleted file mode 100644 index 7cb92de..0000000 --- a/.config/gtk-2.0/gtkfilechooser.ini +++ /dev/null @@ -1,12 +0,0 @@ -[Filechooser Settings] -LastFolderUri=file:///home/luke -LocationMode=filename-entry -ShowHidden=false -ShowSizeColumn=true -GeometryX=287 -GeometryY=99 -GeometryWidth=792 -GeometryHeight=585 -SortColumn=name -SortOrder=ascending -StartupMode=recent diff --git a/.config/gtk-3.0/settings.ini b/.config/gtk-3.0/settings.ini index b0443ec..9801ab0 100644 --- a/.config/gtk-3.0/settings.ini +++ b/.config/gtk-3.0/settings.ini @@ -1,6 +1,7 @@ [Settings] -gtk-theme-name=Raleigh +gtk-theme-name=oxygen-gtk gtk-icon-theme-name=oxygen +gtk-fallback-icon-theme=gnome gtk-font-name=Sans 10 gtk-cursor-theme-name=Vanilla-DMZ gtk-cursor-theme-size=0 diff --git a/.config/hgk b/.config/hgk new file mode 100644 index 0000000..f767058 --- /dev/null +++ b/.config/hgk @@ -0,0 +1,59 @@ +set mainfont {Helvetica 9} +set curidfont {Helvetica 9 bold italic underline} +set textfont {Courier 9} +set findmergefiles 0 +set gaudydiff 0 +set maxgraphpct 50 +set maxwidth 16 +set geometry(width) 1364 +set geometry(height) 690 +set geometry(canv1) 321 +set geometry(canv2) 66 +set geometry(canv3) 947 +set geometry(canvh) 256 +set geometry(ctextw) 90 +set geometry(cflistw) 84 +# +# main window position: +set posx 1 +set posy 61 +# +# authorcolors format: +# +# zero or more sublists of +# +# { regex color } +# +# followed by a list of colors +# +# If the commit author matches a regex in a sublist, +# the commit will be colored by that color +# otherwise the next unused entry from the list of colors +# will be assigned to this commit and also all other commits +# of the same author. When the list of colors is exhausted, +# the last entry will be reused. +# +set authorcolors { + black blue deeppink mediumorchid blue burlywood4 goldenrod slateblue red2 navy dimgrey +} +# +# The background color in the text windows +set bgcolor white +# +# The text color used in the diff and file list view +set fgcolor black +# +# Color to display + lines in diffs +set diffaddcolor #00a000 +# +# Color to display - lines in diffs +set diffremcolor red +# +# Merge diffs: Color to signal lines from first parent +set diffmerge1color red +# +# Merge diffs: Color to signal lines from second parent +set diffmerge2color blue +# +# Hunkseparator (@@ -lineno,lines +lineno,lines @@) color +set hunksepcolor blue diff --git a/.config/hgrc b/.config/hgrc index 96fce82..cf595e3 100644 --- a/.config/hgrc +++ b/.config/hgrc @@ -1,2 +1,4 @@ [ui] username = Luke Shumaker <lukeshu@sbcglobal.net> +[extensions] +hgk = diff --git a/.config/icons/default/index.theme b/.config/icons/default/index.theme new file mode 100644 index 0000000..dd26337 --- /dev/null +++ b/.config/icons/default/index.theme @@ -0,0 +1,4 @@ +# This file is written by LXAppearance. Do not edit.[Icon Theme] +Name=Default +Comment=Default Cursor Theme +Inherits=Vanilla-DMZ diff --git a/.config/irbrc b/.config/irbrc new file mode 100644 index 0000000..27cce66 --- /dev/null +++ b/.config/irbrc @@ -0,0 +1,4 @@ +require 'rubygems' unless defined? Gem # only needed in 1.8 +require 'irb/ext/save-history' +IRB.conf[:SAVE_HISTORY] = 5000 +IRB.conf[:HISTORY_FILE] = "#{ENV['XDG_CACHE_HOME']}/irb/history"
\ No newline at end of file diff --git a/.config/login.sh b/.config/login.sh new file mode 100644 index 0000000..3dad752 --- /dev/null +++ b/.config/login.sh @@ -0,0 +1,85 @@ +#!/bin/bash +# ~/.profile: executed by the command interpreter for login shells. +# Should be whether logging in graphically or not. +# +# This file should be executable by /bin/sh, but I'm going to assume bash(1) +# +# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login +# exists. + +# the default umask is set in /etc/profile; for setting the umask +# for ssh logins, install and configure the libpam-umask package. +umask 022 + +## Paths ############################################################# + +. "$HOME/.local/lib/path.sh" + +# TMPDIR ############################################################# + +if [[ ! -d "$HOME/tmp" ]]; then + tmp="$(mktemp --tmpdir -d "$USER-tmpdir.XXXXXXXXXXXXXXXXXXX")" + ln -sf "$tmp" "$HOME/tmp" + unset tmp +fi +export TMPDIR="$HOME/tmp" + +# XDG ################################################################ + +. "$HOME/.local/lib/xdg.sh" + +# Settings ########################################################### + +# Text editor +if [[ -f "$HOME/.selected_editor" ]]; then + . "$HOME/.selected_editor" + export SELECTED_EDITOR + export ALTERNATE_EDITOR + export EDITOR="${EDITOR:-$SELECTED_EDITOR}" + export VISUAL="${VISUAL:-$SELECTED_EDITOR}" +fi + +# GPG +if [[ -z $GPGKEY ]] && [[ -f "${HOME}/.gnupg/gpg.conf" ]]; then + export GPGKEY=`sed -nr 's/^\s*default-key\s+//p' "${HOME}/.gnupg/gpg.conf"` +fi +if [[ -z "$(pgrep -u `whoami` gpg-agent)" ]] && [[ -n $XDG_RUNTIME_DIR ]] && type gpg-agent &>/dev/null; then + mkdir -p "${XDG_RUNTIME_DIR}/sessions" + gpg-agent --daemon --write-env-file "${XDG_RUNTIME_DIR}/sessions/gpg" &>/dev/null +fi +if [[ -f "${XDG_RUNTIME_DIR}/sessions/gpg" ]]; then + . "${XDG_RUNTIME_DIR}/sessions/gpg" + export GPG_AGENT_INFO + #export SSH_AUTH_SOCK +fi + +# Java +_JAVA_OPTIONS='' +_JAVA_OPTIONS+=' -Dawt.useSystemAAFontSettings=on' +_JAVA_OPTIONS+=' -Dswing.aatext=true' +_JAVA_OPTIONS+=' -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' +if [[ -n $TMPDIR ]]; then + _JAVA_OPTIONS+=" -Djava.io.tmpdir=$TMPDIR" +fi +export _JAVA_OPTIONS + +# X11 +if [[ -z $XAUTHORITY ]]; then + export XAUTHORITY="$HOME/.Xauthority" +fi + +# D-Bus +if [[ -z $DBUS_SESSION_BUS_ADDRESS ]] && type dbus-launch &>/dev/null; then + # I want a separate instance for each login + #dbus-launch > "${HOME}/.cache/sessions/dbus" + #. "${HOME}/.cache/sessions/dbus" + eval `dbus-launch` + + export DBUS_SESSION_BUS_ADDRESS + export DBUS_SESSION_BUS_PID +fi + +# Load any box-specific stuff +if [[ -f "$XDG_CONFIG_HOME/login.local.sh" ]]; then + . "$XDG_CONFIG_HOME/login.local.sh" +fi diff --git a/.config/lxpanel/default/config b/.config/lxpanel/default/config index 3ac287f..e19a7d1 100644 --- a/.config/lxpanel/default/config +++ b/.config/lxpanel/default/config @@ -1,3 +1,4 @@ [Command] FileManager=v-editor %s -Terminal=urxvt +Terminal=urxvt -c %s +Logout=bash -c 'echo quit >> $WMII_DIR/ctl' diff --git a/.config/lxpanel/default/panels/panel b/.config/lxpanel/default/panels/panel index e89a833..304f201 100644 --- a/.config/lxpanel/default/panels/panel +++ b/.config/lxpanel/default/panels/panel @@ -9,7 +9,7 @@ Global { width=100 height=16 transparent=1 - tintcolor=#002b36 + tintcolor=#555753 alpha=255 autohide=0 heightwhenhidden=2 @@ -17,11 +17,12 @@ Global { setpartialstrut=1 usefontcolor=1 fontsize=10 - fontcolor=#839496 + fontcolor=#eeeeec usefontsize=0 background=0 backgroundfile=/usr/share/lxpanel/images/background.png iconsize=16 + loglevel=2 } Plugin { diff --git a/.config/maildirproc/default.rc b/.config/maildirproc/att.rc index ecea80f..e862b3f 100644 --- a/.config/maildirproc/default.rc +++ b/.config/maildirproc/att.rc @@ -1,9 +1,11 @@ -# -*- mode: python; -*- +# -*- mode: python; indent-tabs-mode: t -*- +import os import subprocess processor.maildir_base = "~/Maildir" processor.auto_reload_rcfile = True +processor.logfile = os.getenv('XDG_CACHE_HOME', "~/.cache")+"/maildirproc/att.log" def is_to_or_from(mail,address): """ @@ -78,7 +80,7 @@ def my_filters(mail): if ( False or mail["List-Id"].matches(list+"\.gnu\.org") - or mail["Subject"].contains(list) + or mail["Subject"].contains('['+list+']') ): mail.move(".software."+list) return @@ -97,14 +99,31 @@ def my_filters(mail): return if mail["List-Id"].matches("maintenance.lists.parabolagnulinux.org"): + if mail["From"].contains("monit@"): + if mail["Message-Id"].contains("@repo.parabolagnulinux.org"): + mail.move(".software.parabola-maintenance.monit-repo") + return + if mail["Message-Id"].contains("@rshg054.dnsready.net"): + mail.move(".software.parabola-maintenance.monit-rshg054") + return + if mail["Subject"].matches("Cron <.*@repo>"): + mail.move(".software.parabola-maintenance.cron-repo") + return + if mail["Subject"].matches("Cron <.*@rshg054>"): + mail.move(".software.parabola-maintenance.cron-rshg054") + return mail.move(".software.parabola-maintenance") return + + if is_to_or_from(mail, "parabola.nu"): + mail.move(".software.parabola-labs") + return + if ( False or mail["List-Id"].matches("parabolagnulinux.org") or is_to_or_from(mail, "parabolagnulinux.org") or is_to_or_from(mail, "kiwwwi.com.ar") - or is_to_or_from(mail, "parabola.nu") ): mail.move(".software.parabola-dev") return @@ -175,7 +194,7 @@ def my_filters(mail): "parsonstjade@gmail.com", "jadparso@umail.iu.edu", ]: - if mail["From"].contains(address): + if is_to_or_from(mail,address): mail.move(".misc.Jade") return @@ -221,7 +240,6 @@ def my_filters(mail): mail.move(".School.Robotics") return for subject_re in [ - "FIRST", "robotics", "1024", "kil-?a-?bytes", diff --git a/.config/maildirproc/purdue.rc b/.config/maildirproc/purdue.rc index 9a759f5..0ffc1e6 100644 --- a/.config/maildirproc/purdue.rc +++ b/.config/maildirproc/purdue.rc @@ -1,9 +1,11 @@ -# -*- mode: python; -*- +# -*- mode: python; indent-tabs-mode: t -*- +import os import subprocess processor.maildir_base = "~/Maildir.purdue" processor.auto_reload_rcfile = True +processor.logfile = os.getenv('XDG_CACHE_HOME', "~/.cache")+"/maildirproc/purdue.log" def is_to_or_from(mail,address): """ @@ -29,7 +31,12 @@ def piazza_topic(mail, topic): def my_filters(mail): # Generic stuff ######################################################## - if mail["Subject"].contains("[PASE]"): + if ( + False + or mail["Subject"].contains("[PASE]") + or is_to_or_from(mail,"Purduealumni@purdue.edu") + or is_to_or_from(mail,"pase@purdue.edu") + ): mail.move("INBOX.PASE") return @@ -37,12 +44,45 @@ def my_filters(mail): mail.move("INBOX.PLUG") return + if mail["From"].matches(".*bursar.*@purdue\.edu"): + mail.move("INBOX.tuition") + return + + if mail["From"].contains("mailhub-admin@purdue.edu"): + mail.move("INBOX.mailhub-admin") + return + + if mail["From"].matches("pmx-.*@purdue.edu"): + mail.move("INBOX.spam") + return + if is_to_or_from(mail,"linkedin.com"): mail.move("INBOX.LinkedIn") return if ( False + or is_to_or_from(mail,"@edrtrust.com") + or is_to_or_from(mail,"@propertysolutions.com") + or is_to_or_from(mail,"collegestationapartments@gmail.com") + ): + mail.move("INBOX.CollegeStation") + return + + if mail["From"].matches("facebook(|mail)\.com"): + mail.move("INBOX.Facebook") + return + + if ( + False + or is_to_or_from(mail,"@cable.comcast.com") + or is_to_or_from(mail,"@apexsystemsinc.com") + ): + mail.move("INBOX.Comcast") + return + + if ( + False or mail["Subject"].contains("[CS Opportunity Update]") or mail["Subject"].contains("[CS Majors]") ): @@ -65,15 +105,44 @@ def my_filters(mail): # Spring 2013 ########################################################## + if mail["Subject"].contains("[CS240] Submission result for"): + mail.move("INBOX.classes.2013-1.CS240.autograder") + return if mail["Subject"].contains("[CS240]") or mail["Subject"].contains("Spring-2013-CS-24000"): mail.move("INBOX.classes.2013-1.CS240") return if piazza_topic(mail, "CS 240"): mail.move("INBOX.classes.2013-1.CS240.Piazza") return + if mail["Subject"].matches(".*(PHYS|CHIP)\s*220.*") or is_to_or_from(mail,"srdas@purdue.edu"): + mail.move("INBOX.classes.2013-1.PHYS220") + return + if mail["Subject"].contains("Spring-2013-SOC-22000"): + mail.move("INBOX.classes.2013-1.SOC220") + return - if mail["Subject"].contains("Spring-2013-CS-18200"): - mail.move("INBOX.classes.2013-1.CS182") + # Fall 2013 ############################################################ + + if mail["Subject"].contains("Fall-2013-CS-25000"): + mail.move("INBOX.classes.2013-2.CS250") + return + if piazza_topic(mail, "CS 250") or piazza_topic(mail, "CS 250-FALL2013"): + mail.move("INBOX.classes.2013-2.CS250.Piazza") + return + if mail["Subject"].contains("Fall-2013-CS-25100"): + mail.move("INBOX.classes.2013-2.CS251") + return + if piazza_topic(mail, "CS 251"): + mail.move("INBOX.classes.2013-2.CS251.Piazza") + return + if mail["Subject"].contains("Fall-2013-SPAN-10100"): + mail.move("INBOX.classes.2013-2.SPAN101") + return + if mail["Subject"].contains("Fall-2013-MA-26100"): + mail.move("INBOX.classes.2013-2.MA261") + return + if mail["Subject"].contains("Fall-2013-MA-26500"): + mail.move("INBOX.classes.2013-2.MA265") return handle_mapping = { diff --git a/.config/offlineimaprc b/.config/offlineimaprc index 8ea8f30..d027001 100644 --- a/.config/offlineimaprc +++ b/.config/offlineimaprc @@ -19,7 +19,7 @@ nametrans = lambda foldername: re.sub('^$', 'Inbox', re.sub('^'+re.escape('%(sep [Repository Remote-SBCGlobal] type = IMAP ssl = yes -cert_fingerprint = 700d84baa7e852240178dc2de18e7e528a2854df +cert_fingerprint = a6ee8d759eb76dafacffffc47c4507d51f444984 remotehost = imap.mail.yahoo.com remoteuser = lukeshu@sbcglobal.net folderfilter = lambda foldername: not re.search('(Trash|Del)', foldername) @@ -43,7 +43,7 @@ folderfilter = lambda foldername: re.search('INBOX', foldername) [Repository Remote-Purdue] type = IMAP ssl = yes -cert_fingerprint = 32bdd134cad8da1bea57aa379b98b1cff692e4fd +cert_fingerprint = 2189e7d568d93352fcdccaa24137856191703c4a remotehost = mymail.purdue.edu remoteuser = shumakl folderfilter = lambda foldername: re.search('INBOX', foldername) diff --git a/.config/selected_editor b/.config/selected_editor new file mode 100644 index 0000000..7631487 --- /dev/null +++ b/.config/selected_editor @@ -0,0 +1,4 @@ +# Generated by /usr/bin/select-editor +SELECTED_EDITOR="emacsclient -a '' -c" +ALTERNATE_EDITOR='nano' +VISUAL="$SELECTED_EDITOR" diff --git a/.config/ssh/config b/.config/ssh/config new file mode 100644 index 0000000..894af44 --- /dev/null +++ b/.config/ssh/config @@ -0,0 +1,25 @@ +Host * + Protocol 2 + ControlMaster auto + ControlPath ~/.ssh/master-%r@%h:%p + Compression yes + +Host lore + HostName lore.cs.purdue.edu + User shumakl + +Host data + HostName data.cs.purdue.edu + User shumakl + +Host repo + Port 1863 + HostName repo.parabolagnulinux.org + +Host rshg054 + Port 1863 + HostName parabolagnulinux.org + +Host lukeshu + Port 1863 + HostName 199.180.255.147 diff --git a/.config/symlinks b/.config/symlinks index 3d87984..dfd06d4 100644 --- a/.config/symlinks +++ b/.config/symlinks @@ -1,35 +1,53 @@ +# target link + +# Generic +.config/login.sh .profile + +# X11 .config/X11/defaults .Xdefaults .config/X11/clientrc .xinitrc .config/X11/serverrc .xserverrc .config/X11/login .xsession +# Bash .config/bash/rc.sh .bashrc .config/bash/login.sh .bash_login .config/bash/logout.sh .bash_logout +# Files plucked out of multi-purpose directories +.config/ssh/config .ssh/config +.config/gpg/gpg.conf .gnupg/gpg.conf + +# Individual config files +.config/conkerorrc .conkerorrc +.config/hgrc .hgrc +.config/hgk .hgk +.config/irbrc .irbrc +.config/linphonerc .linphonerc +.config/selected_editor .selected_editor + +.cache/offlineimap .offlineimap +.config/offlineimaprc .offlineimaprc + +# Directories +.cache/maildirproc/ .maildirproc +.config/icons/ .icons .config/arduino/ .arduino .config/bazaar/ .bazaar .config/cpan/ .cpan .config/emacs/ .emacs.d -.config/gimp-2.6/ .gimp-2.6 -.config/gimp-2.8/ .gimp-2.8 -.config/maildirproc/ .maildirproc -.config/mozilla/ .mozilla # +.config/mozilla/ .mozilla # .config/mplayer/ .mplayer .config/nanorc .nanorc -.config/netbeans/ .netbeans .config/purple/ .purple -.config/ssh/ .ssh # .config/subversion/ .subversion -.config/wmii/ .wmii - -.config/conkerorrc .conkerorrc -.config/hgrc .hgrc -.config/linphonerc .linphonerc -.config/offlineimaprc .offlineimaprc +.config/wmii/ .wmii # +.config/wmii-hg/ .wmii-hg +# KDE .config/ .kde/share/apps .config/ .kde/share/config - .kde/ .kde4 + +# Alias for conkeror .mozilla/ .conkeror.mozdev.org diff --git a/.config/symlinks.sh b/.config/symlinks.sh deleted file mode 100755 index a3db6ae..0000000 --- a/.config/symlinks.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -sed -e '/^\s*$/d' -e '/#/d' symlinks | while read _path _link; do - path="$(sed -rn 's|[^/]+/|../|g;s|/[^/]+$|/|p' <<<"$_link")${_path}" - link="$HOME/$_link" - if [[ -L "$link" ]]; then - rm -f "$link" - fi - if [[ -e "$link" ]]; then - echo "ERROR: file exists: $link" >> /dev/stderr - else - mkdir -p "${link%/*}" - ln -s "$path" "$link" - fi -done diff --git a/.config/wmii-hg/autostart b/.config/wmii-hg/autostart new file mode 100755 index 0000000..9c47a9d --- /dev/null +++ b/.config/wmii-hg/autostart @@ -0,0 +1,12 @@ +#!/bin/bash +. include.sh + +daemon xcompmgr &> /dev/null +daemon lxpanel &> /dev/null +daemon nm-applet &> /dev/null +daemon dunst &> /dev/null + +#Action rbar_cpu 01 & +#Action rbar_wifi 97 & +#Action rbar_battery 98 & +Action rbar_clock 99 & diff --git a/.config/wmii/config.sh b/.config/wmii-hg/config.sh index 1dac0ad..3ddc8d5 100644 --- a/.config/wmii/config.sh +++ b/.config/wmii-hg/config.sh @@ -6,10 +6,11 @@ DOWN=n LEFT=b RIGHT=f -HIST="`conffile history`" +HIST="$XDG_CACHE_HOME/wmii/history" +mkdir -p "${HIST%/*}" # Colors tuples: "<text> <background> <border>" -. `conffile theme-solarized-dark` +. theme-tango-dark Event() { event=$1; shift; @@ -32,11 +33,11 @@ Event() { Event WmiircMount # Configure wmii - < "`conffile tagrules`" expand_variables >> $WMII_DIR/tagrules + < "`conffile rules`" expand_variables >> $WMII_DIR/rules < "`conffile ctl-init`" expand_variables >> $WMII_DIR/ctl scansection Key | cut -sf2 >> $WMII_DIR/keys # Configure X11 - xsetroot -solid "$WMII_BACKGROUND" + hsetroot -solid "$WMII_BACKGROUND" # Clear the LBar and RBar find $WMII_DIR/{l,r}bar -type f -delete @@ -133,17 +134,17 @@ Event() { ## Tag events CreateTag) ## $1=tag - echo "$WMII_NORMCOLORS" $@ >> $WMII_DIR/lbar/$1;; + echo label "$*" >> $WMII_DIR/lbar/$1;; DestroyTag) ## $1=tag rm $WMII_DIR/lbar/$1;; FocusTag) ## $1=tag - echo "$WMII_FOCUSCOLORS" $1 >> $WMII_DIR/lbar/$1;; + echo colors "$WMII_FOCUSCOLORS" >> $WMII_DIR/lbar/$1;; UnfocusTag) ## $1=tag - echo "$WMII_NORMCOLORS" $1 >> $WMII_DIR/lbar/$1;; + echo colors "$WMII_NORMCOLORS" >> $WMII_DIR/lbar/$1;; UrgentTag) ## $1=tag $2=[Manager|Client] - echo "$WMII_URGENTCOLORS" $1 >> $WMII_DIR/lbar/$1;; + echo "$WMII_URGENTCOLORS" >> $WMII_DIR/lbar/$1;; NotUrgentTag) ## $1=tag $2=[Manager|Client] - echo "$WMII_NORMCOLORS" $1 >> $WMII_DIR/lbar/$1;; + echo "$WMII_NORMCOLORS" >> $WMII_DIR/lbar/$1;; ## LeftBar events (usually tag buttons) LeftBarMouseDown) ## $1=button $2=bar_item @@ -219,9 +220,9 @@ Key() { $MODKEY-a) ## Open wmii actions menu Action $(path_ls $WMII_CONFPATH | wimenu -h "${HIST}.actions" -n 5000) & ;; $MODKEY-x) ## Open program menu - setsid $(path_ls $PATH | wimenu -h "${HIST}.progs" -n 5000) & ;; + PATH=$_PATH setsid $(path_ls $PATH | wimenu -h "${HIST}.progs" -n 5000) & ;; $MODKEY-Return) ## Launch a terminal - setsid x-terminal-emulator & ;; + PATH=$_PATH setsid x-terminal-emulator & ;; ## Tag actions $MODKEY-t) ## Change to another tag diff --git a/.config/wmii/ctl-init b/.config/wmii-hg/ctl-init index 026c0d5..026c0d5 100644 --- a/.config/wmii/ctl-init +++ b/.config/wmii-hg/ctl-init diff --git a/.config/wmii/fixes.sh b/.config/wmii-hg/fixes.sh index aa09157..aa09157 100644 --- a/.config/wmii/fixes.sh +++ b/.config/wmii-hg/fixes.sh diff --git a/.config/wmii/help-events b/.config/wmii-hg/help-events index 25b7d41..08abd18 100755 --- a/.config/wmii/help-events +++ b/.config/wmii-hg/help-events @@ -1,3 +1,3 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh scansection Event | xmessage -file - diff --git a/.config/wmii/help-keys b/.config/wmii-hg/help-keys index c6e7038..6f4bd1c 100755 --- a/.config/wmii/help-keys +++ b/.config/wmii-hg/help-keys @@ -1,3 +1,3 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh scansection Key | xmessage -file - diff --git a/.config/wmii-hg/include.sh b/.config/wmii-hg/include.sh new file mode 100644 index 0000000..38551aa --- /dev/null +++ b/.config/wmii-hg/include.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [[ -z "$WMII_NAMESPACE" ]]; then + export WMII_NAMESPACE="`wmiir namespace`" +fi +if [[ -z "$WMII_DIR" ]]; then + export WMII_DIR="$HOME/n/wmii" +fi + +. util.sh +. config.sh diff --git a/.config/wmii/quit b/.config/wmii-hg/quit index 876a60e..27d9052 100755 --- a/.config/wmii/quit +++ b/.config/wmii-hg/quit @@ -1,3 +1,3 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh echo quit >> $WMII_DIR/ctl diff --git a/.config/wmii-hg/rbar_battery b/.config/wmii-hg/rbar_battery new file mode 100755 index 0000000..f632f7e --- /dev/null +++ b/.config/wmii-hg/rbar_battery @@ -0,0 +1,9 @@ +#!/bin/bash +. include.sh + +priority=$1 + +while connected_to_x_server; do + printf 'label %s\n' "$(acpi -b)" >> "$WMII_DIR/rbar/${priority}_battery" + sleep 1 +done diff --git a/.config/wmii-hg/rbar_clock b/.config/wmii-hg/rbar_clock new file mode 100755 index 0000000..6aecb92 --- /dev/null +++ b/.config/wmii-hg/rbar_clock @@ -0,0 +1,9 @@ +#!/bin/bash +. include.sh + +priority=$1 + +while connected_to_x_server; do + printf 'label %s\n' "$(date)" >> "$WMII_DIR/rbar/${priority}_clock" + sleep .5 +done diff --git a/.config/wmii/rbar_cpu b/.config/wmii-hg/rbar_cpu index 22da985..5531e60 100755 --- a/.config/wmii/rbar_cpu +++ b/.config/wmii-hg/rbar_cpu @@ -1,5 +1,5 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh priority=$1 @@ -7,6 +7,6 @@ while connected_to_x_server; do # This doesn't work for me, it shows capacity #echo -n 'Core MHz:' $(cat /proc/cpuinfo | grep 'cpu MHz' | sed 's/.*: //g; s/\..*//g;') >> "$WMII_DIR/rbar/${priority}_cpu" # This actually displays %idle - echo 'CPU: [ '$(tail -n3 ~/tmp/cputime|sed -ur 's/\s\s+/\t/g'|cut -f2,11|sed 's/\t\(.*\)/(\1)/')' ]' >> "$WMII_DIR/rbar/${priority}_cpu" + echo 'label CPU: [ '$(tail -n3 ~/tmp/cputime|sed -ur 's/\s\s+/\t/g'|cut -f2,11|sed 's/\t\(.*\)/(\1)/')' ]' >> "$WMII_DIR/rbar/${priority}_cpu" sleep 1 done diff --git a/.config/wmii-hg/rbar_wifi b/.config/wmii-hg/rbar_wifi new file mode 100755 index 0000000..18395a3 --- /dev/null +++ b/.config/wmii-hg/rbar_wifi @@ -0,0 +1,9 @@ +#!/bin/bash +. include.sh + +priority=$1 + +while connected_to_x_server; do + echo 'label Wlan0:' $(iwconfig wlan0 | sed 's/ /\n/g' | grep Quality) >> "$WMII_DIR/rbar/${priority}_wifi" + sleep 1 +done diff --git a/.config/wmii-hg/rules b/.config/wmii-hg/rules new file mode 100644 index 0000000..cf735c9 --- /dev/null +++ b/.config/wmii-hg/rules @@ -0,0 +1,8 @@ +/wimenu/ floating=always +/panel/ tags=/.*/ floating=always +/xfce4-notifyd/ tags=/.*/ floating=always + +/nm-applet/ floating=off + +/Emacs|Navigator/ force-tags=+sel floating=never +/.*/ floating=off diff --git a/.config/wmii/theme-solarized b/.config/wmii-hg/theme-solarized index 5dc830d..5dc830d 100644 --- a/.config/wmii/theme-solarized +++ b/.config/wmii-hg/theme-solarized diff --git a/.config/wmii/theme-solarized-dark b/.config/wmii-hg/theme-solarized-dark index 83285ba..fde361b 100644 --- a/.config/wmii/theme-solarized-dark +++ b/.config/wmii-hg/theme-solarized-dark @@ -1,7 +1,7 @@ #!/bin/sh # Solarized-dark -. $HOME/.wmii/theme-solarized +. theme-solarized WMII_BACKGROUND="$SOL_BASE02" diff --git a/.config/wmii-hg/theme-tango b/.config/wmii-hg/theme-tango new file mode 100644 index 0000000..e0e35d4 --- /dev/null +++ b/.config/wmii-hg/theme-tango @@ -0,0 +1,10 @@ +TANGO_butter=("#fce94f" "#edd400" "#c4a000") +TANGO_orange=("#fcaf3e" "#f57900" "#ce5c00") +TANGO_choc=( "#e9b96e" "#c17d11" "#8f5902") +TANGO_cham=( "#8ae234" "#73d216" "#4e9a06") +TANGO_blue=( "#729fcf" "#3465a4" "#204a87") +TANGO_plum=( "#ad7fa8" "#75507b" "#5c3566") +TANGO_red=( "#ef2929" "#cc0000" "#a40000") +TANGO_alum=( "#eeeeec" "#d3d7cf" "#babdb6" + "#888a85" "#555753" "#2e3436") + diff --git a/.config/wmii-hg/theme-tango-dark b/.config/wmii-hg/theme-tango-dark new file mode 100644 index 0000000..04a9fa6 --- /dev/null +++ b/.config/wmii-hg/theme-tango-dark @@ -0,0 +1,11 @@ +#!/bin/bash +# Tango-tark + +. theme-tango + +WMII_BACKGROUND="${TANGO_alum[5]}" + +# ="<text> <background> <border>" +WMII_NORMCOLORS="${TANGO_alum[0]} ${TANGO_alum[4]} ${TANGO_alum[3]}" +WMII_FOCUSCOLORS="${TANGO_alum[5]} ${TANGO_alum[1]} ${TANGO_alum[0]}" +WMII_URGENTCOLORS="${TANGO_orange[0]} ${TANGO_alum[4]} ${TANGO_orange[4]}" diff --git a/.config/wmii/util.sh b/.config/wmii-hg/util.sh index 43d7d4a..a4c4bb4 100644 --- a/.config/wmii/util.sh +++ b/.config/wmii-hg/util.sh @@ -1,7 +1,7 @@ #!/bin/bash # I moved "fixes" into a separate file because it isn't so much configuration... -. "$HOME/.wmii/fixes.sh" +. fixes.sh ################################################################################ # Added shell features # @@ -124,5 +124,5 @@ scansection() { # Usage: conffile FILE ## conffile() { - echo "$HOME/.wmii/$@" + echo "$HOME/.wmii-hg/$@" } diff --git a/.config/wmii/wmiirc b/.config/wmii-hg/wmiirc index 1f1ea18..a6bc4b4 100755 --- a/.config/wmii/wmiirc +++ b/.config/wmii-hg/wmiirc @@ -1,5 +1,8 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +export _PATH="$PATH" +export PATH="$WMII_CONFPATH:$PATH" + +. include.sh wmiir xwrite /event WmiircQuit # close any existing wmiirc's diff --git a/.config/wmii/include.sh b/.config/wmii/include.sh deleted file mode 100644 index d4e58c3..0000000 --- a/.config/wmii/include.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -if [ -z "$WMII_NAMESPACE" ]; then - export WMII_NAMESPACE="`wmiir namespace`" -fi -if [ -z "$WMII_DIR" ]; then - export WMII_DIR="$HOME/n/wmii" -fi - -. "$HOME/.wmii/util.sh" -. "$HOME/.wmii/config.sh" diff --git a/.config/wmii/rbar_battery b/.config/wmii/rbar_battery deleted file mode 100755 index ae8980a..0000000 --- a/.config/wmii/rbar_battery +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -. "$HOME/.wmii/include.sh" - -priority=$1 - -while connected_to_x_server; do - acpi -b >> "$WMII_DIR/rbar/${priority}_battery" - sleep 1 -done diff --git a/.config/wmii/rbar_clock b/.config/wmii/rbar_clock deleted file mode 100755 index 18c4493..0000000 --- a/.config/wmii/rbar_clock +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -. "$HOME/.wmii/include.sh" - -priority=$1 - -while connected_to_x_server; do - date >> "$WMII_DIR/rbar/${priority}_clock" - sleep .5 -done diff --git a/.config/wmii/rbar_wifi b/.config/wmii/rbar_wifi deleted file mode 100755 index 2ada834..0000000 --- a/.config/wmii/rbar_wifi +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -. "$HOME/.wmii/include.sh" - -priority=$1 - -while connected_to_x_server; do - echo 'Wlan0:' $(iwconfig wlan0 | sed 's/ /\n/g' | grep Quality) >> "$WMII_DIR/rbar/${priority}_wifi" - sleep 1 -done diff --git a/.config/wmii/tagrules b/.config/wmii/tagrules deleted file mode 100644 index 990151f..0000000 --- a/.config/wmii/tagrules +++ /dev/null @@ -1,3 +0,0 @@ -/Emacs|Navigator/ -> +sel -/Eclipse/ -> +sel -/panel/ -> /.*/ diff --git a/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml b/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml new file mode 100644 index 0000000..2dd5c11 --- /dev/null +++ b/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<channel name="xfce4-notifyd" version="1.0"> + <property name="notify-location" type="uint" value="2"/> + <property name="initial-opacity" type="double" value="1.000000"/> +</channel> |