blob: d04364c253f64d9471151e17a3ffa7af493262ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# get-coast: get a "check-out-at-some-time" entry.
if [ "$ORGD_KT_PATH" = "" ]; then
notify-send "ORGD_KT_PATH empty." "Using $HOME/docs/wr/orgd/kt as fallback."
file="$HOME/docs/wr/orgd/kt/coast"
else
file="$ORGD_KT_PATH/coast"
fi
# This regex matches <space tab carriage-return linefeed> though it is hard to
# read.
# I wonder if it might be worth cutting on a different character than space?
# If a space is present in the bookmark then it will bug out.
xdotool type --delay 2 "$(grep -v '^#\|^[ \r\n]*$' $file | dmenu -i -l 50 | cut -d' ' -f1)"
|