summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/cron/alarm3
-rw-r--r--.config/git/config1
-rw-r--r--.config/maildirproc/att.rc33
l---------.config/systemd/user/default.target.wants/maildirproc@att.service1
l---------.config/systemd/user/default.target.wants/vncserver@:1.service1
-rwxr-xr-x.config/wmii-hg/rbar_acpi2
6 files changed, 26 insertions, 15 deletions
diff --git a/.config/cron/alarm b/.config/cron/alarm
new file mode 100644
index 0000000..b4e245e
--- /dev/null
+++ b/.config/cron/alarm
@@ -0,0 +1,3 @@
+#m h dom mon dow command
+#49 0 * * * while true; do /home/luke/.local/bin/state-the-time; sleep 1; done
+#30 7 * * * while true; do /home/luke/.local/bin/state-the-time; sleep 1; done
diff --git a/.config/git/config b/.config/git/config
index 6e5abf2..3404c0c 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -8,3 +8,4 @@
[alias]
lg = log --graph --format='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
hist = log --format='%h %ci -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit
+ graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f"
diff --git a/.config/maildirproc/att.rc b/.config/maildirproc/att.rc
index 67335e7..f25aa09 100644
--- a/.config/maildirproc/att.rc
+++ b/.config/maildirproc/att.rc
@@ -15,12 +15,14 @@ def mailman_domain(mail, domain):
m = mail["List-Id"].matches("^(.*<|)([^<]*)\."+re.escape(domain))
if m:
return m.group(2)
+ ret = None
for hdr in [ 'To', 'Cc', 'From' ]:
m = mail[hdr].matches("((\w|-)*)@"+re.escape(domain))
if m:
- if mail["Subject"].contains("["+m.group(1)+"]"):
- return m.group(1)
- return None
+ ret = m.group(1)
+ if mail["Subject"].contains("["+ret+"]"):
+ return ret
+ return ret
def ezmlm_domain(mail, domain):
"""
@@ -149,17 +151,19 @@ def my_whitelist(mail):
def my_filters(mail):
# .software.* (GNU Mailman)
- for pair in [ [ 'gnu.org', 'gnu' ], # https://lists.gnu.org/mailman/options/bug-librejs/lukeshu@sbcglobal.net
- [ 'nongnu.org', 'nongnu' ], # https://lists.nongnu.org/mailman/options/libreboot/lukeshu@sbcglobal.net
- [ 'gnome.org', 'gnome' ], # https://mail.gnome.org/mailman/options/networkmanager-list/lukeshu@sbcglobal.net
- [ 'archlinux.org', 'archlinux' ],
- [ 'lists.freedesktop.org', 'freedesktop' ],
- [ 'lists.fedorahosted.org', 'fedorahosted' ],
- [ 'lists.arthurdejong.org', 'arthurdejong' ],
- [ 'lists.stanford.edu', 'stanford' ],
- [ 'mailman.stanford.edu', 'stanford' ],
- [ 'lists.parabola.nu', 'parabola' ],
- [ 'parabola.nu', 'parabola' ] ]:
+ for pair in [
+ [ 'archlinux.org' , 'archlinux' ], # @sbcglobal.net and @lukeshu.com ; problems delivering to Yahoo!
+ [ 'gnome.org' , 'gnome' ], # https://mail.gnome.org/mailman/options/networkmanager-list/lukeshu@lukeshu.com
+ [ 'gnu.org' , 'gnu' ], # https://lists.gnu.org/mailman/options/bug-librejs/lukeshu@lukeshu.com
+ [ 'lists.arthurdejong.org' , 'arthurdejong' ],
+ [ 'lists.freedesktop.org' , 'freedesktop' ], # https://lists.freedesktop.org/mailman/options/systemd-devel/lukeshu@lukeshu.com
+ [ 'lists.parabola.nu' , 'parabola' ], # https://lists.parabola.nu/mailman/options/dev/lukeshu@lukeshu.com
+ [ 'lists.reproducible-builds.org' , 'reproducible-builds' ], # https://lists.reproducible-builds.org/options/rb-general/lukeshu@lukeshu.com
+ [ 'nongnu.org' , 'nongnu' ], # https://lists.nongnu.org/mailman/options/gnu-linux-libre/lukeshu@lukeshu.com
+ [ 'redhat.com' , 'redhat' ], # https://www.redhat.com/mailman/options/pam-list/lukeshu@lukeshu.com
+ [ 'lists.stanford.edu', 'stanford' ],
+ [ 'mailman.stanford.edu', 'stanford' ],
+ ]:
list = mailman_domain(mail, pair[0])
if list:
move_ham(mail, ".software."+pair[1]+"."+list)
@@ -182,6 +186,7 @@ def my_filters(mail):
or is_to_or_from(mail, "parabolagnulinux.org")
or is_to_or_from(mail, "parabola.nu")
or is_to_or_from(mail, "kiwwwi.com.ar")
+ or is_to_or_from(mail, "jon@whiteheat.org.uk")
):
move_ham(mail, ".software.parabola")
return
diff --git a/.config/systemd/user/default.target.wants/maildirproc@att.service b/.config/systemd/user/default.target.wants/maildirproc@att.service
new file mode 120000
index 0000000..13e527c
--- /dev/null
+++ b/.config/systemd/user/default.target.wants/maildirproc@att.service
@@ -0,0 +1 @@
+../maildirproc@.service \ No newline at end of file
diff --git a/.config/systemd/user/default.target.wants/vncserver@:1.service b/.config/systemd/user/default.target.wants/vncserver@:1.service
new file mode 120000
index 0000000..20fe495
--- /dev/null
+++ b/.config/systemd/user/default.target.wants/vncserver@:1.service
@@ -0,0 +1 @@
+../vncserver@.service \ No newline at end of file
diff --git a/.config/wmii-hg/rbar_acpi b/.config/wmii-hg/rbar_acpi
index 7c1d18b..9c557e0 100755
--- a/.config/wmii-hg/rbar_acpi
+++ b/.config/wmii-hg/rbar_acpi
@@ -5,7 +5,7 @@ update() {
setup_trap "${id}.*"
while true; do
- acpi -bt |
+ acpi -t |
sed -r \
-e 's/^([A-Z])[a-z]+ ([0-9]+):/\1\2:/' \
-e 's/\s*degrees\s*/°/g' \