summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-12-21 12:22:45 +0100
committerGravatar Tom Willemsen2011-12-21 12:22:59 +0100
commit0dbfba6a4d6185a9715615052e9604ac7e717043 (patch)
treee7381e2ed8b04f08e64b439b19529b6879a0b856
parentc048e475fb385c3811d360d9ed0822a87d8a2a40 (diff)
downloaddotfiles-0dbfba6a4d6185a9715615052e9604ac7e717043.tar.gz
dotfiles-0dbfba6a4d6185a9715615052e9604ac7e717043.zip
HLWM: Add 2 keybinds
Mod4-t: start an emacs instance to capture a new todo item Mod4-Shift-t: Show todo list
-rwxr-xr-x.config/herbstluftwm/autostart2
-rwxr-xr-xbin/hlwm/capture-todo5
-rwxr-xr-xbin/hlwm/show-todo5
3 files changed, 12 insertions, 0 deletions
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart
index 4184898..e732d07 100755
--- a/.config/herbstluftwm/autostart
+++ b/.config/herbstluftwm/autostart
@@ -65,6 +65,8 @@
"-misc-tamsyn-medium-r-normal-*-17-*-*-*-*-*-iso8859-*"
"#252a2b" "#eeeeec")))
(keybind "Control" "Mod1-l" "spawn i3lock -c 000000")
+(keybind modkey "t" "spawn ~/bin/hlwm/capture-todo")
+(keybind modkey "Shift-t" "spawn ~/bin/hlwm/show-todo")
;; tags
(hc "rename default q")
diff --git a/bin/hlwm/capture-todo b/bin/hlwm/capture-todo
new file mode 100755
index 0000000..a93d1da
--- /dev/null
+++ b/bin/hlwm/capture-todo
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+herbstclient rule pseudotile=on once
+emacs -Q -l ~/.emacs.d/site-lisp/org-init.elc \
+ --execute "(progn (org-capture nil \"t\") (delete-other-windows) (add-hook 'org-capture-after-finalize-hook 'kill-emacs))"
diff --git a/bin/hlwm/show-todo b/bin/hlwm/show-todo
new file mode 100755
index 0000000..991d3bd
--- /dev/null
+++ b/bin/hlwm/show-todo
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+grep --color=never "* \(TODO\|IN PROGRESS\|WAITING\)" org/notes.org \
+ | sed 's/\*/ /g' \
+ | xmessage -file - -default okay