From 9c40ee5b374a8939c0a6483b61d9601f3b0c66a2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 5 Feb 2014 16:11:48 +1300 Subject: Trying out Wyrd, moving away from Google Calendar Configuration is not much more than the stock Debian one at the moment --- README.markdown | 2 + install | 8 ++- sh/profile.d/remind.sh | 6 ++ wyrd/wyrdrc | 168 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 183 insertions(+), 1 deletion(-) create mode 100644 sh/profile.d/remind.sh create mode 100644 wyrd/wyrdrc diff --git a/README.markdown b/README.markdown index f5a58c7d..8dece66a 100644 --- a/README.markdown +++ b/README.markdown @@ -47,6 +47,8 @@ Configuration is included for: * [rxvt-unicode](http://software.schmorp.de/pkg/rxvt-unicode.html) — Fork of the rxvt terminal emulator with Unicode support * [Vim](http://www.vim.org/) — Vi IMproved, a text editor +* [Wyrd](http://pessimization.com/software/wyrd/) — a `curses` calendar + frontend for [Remind](http://www.roaringpenguin.com/products/remind) * [X11](http://www.x.org/wiki/) — Windowing system with network transparency for Unix diff --git a/install b/install index 7a8367bb..aed6d823 100755 --- a/install +++ b/install @@ -16,6 +16,7 @@ # -n -- Ncmpcpp # -r -- Newsbeuter # -t -- tmux +# -w -- Wyrd # -x -- X11 # # You should be prompted about replacing any file or directory that already @@ -85,7 +86,7 @@ lns "$dotfiles"/vim/vimrc "$HOME"/.vimrc lns "$dotfiles"/vim "$HOME"/.vim # Link in shell stuff -while getopts :dgmnrtx opt; do +while getopts :dgmnrtwx opt; do case $opt in # mysql(1), psql(1) @@ -139,6 +140,11 @@ while getopts :dgmnrtx opt; do lns "$dotfiles"/tmux/tmux.conf "$HOME"/.tmux.conf ;; + # Wyrd + w) + lns "$dotfiles"/wyrd/wyrdrc "$HOME"/.wyrdrc + ;; + # X11 x) lns "$dotfiles"/i3 "$HOME"/.i3 diff --git a/sh/profile.d/remind.sh b/sh/profile.d/remind.sh new file mode 100644 index 00000000..1c92b584 --- /dev/null +++ b/sh/profile.d/remind.sh @@ -0,0 +1,6 @@ +# Show reminders on login +if command -v remind >/dev/null 2>&1 && [ -f "$HOME"/.reminders ] ; then + printf '\n' + remind "$HOME"/.reminders +fi + diff --git a/wyrd/wyrdrc b/wyrd/wyrdrc new file mode 100644 index 00000000..8b9363c3 --- /dev/null +++ b/wyrd/wyrdrc @@ -0,0 +1,168 @@ +# Wyrd run-configuration file + +# command for the Remind executable +set remind_command="remind" +# the default reminder file to display +set reminders_file="$HOME/.reminders" +# command for editing an old appointment, given a line number %line% and filename %file% +set edit_old_command="${VISUAL:-$EDITOR} +%line% %file%" +# command for editing a new appointment, given a filename %file% +set edit_new_command="${VISUAL:-$EDITOR} +999999 %file%" +# command for free editing of the reminders file, given a filename %file% +set edit_any_command="${VISUAL:-$EDITOR} %file%" + + +# templates for creating new appointments +# %monname% -> month name, %mon% -> month number, %mday% -> day of the month, +# %year% -> year, %hour% -> hour, %min% -> minute, %wdayname% -> weekday name +# %wday% -> weekday number +set timed_template="REM %monname% %mday% %year% AT %hour%:%min% DURATION 1:00 MSG " +set untimed_template="REM %monname% %mday% %year% MSG " + +# weekly recurrence +set template0="REM %wdayname% AT %hour%:%min% DURATION 1:00 MSG " +set template1="REM %wdayname% MSG " + +# monthly recurrence +set template2="REM %mday% AT %hour%:%min% DURATION 1:00 MSG " +set template3="REM %mday% MSG " + + +# algorithm to use for determining busy level +# "1" -> count the number of reminders in each day +# "2" -> count the number of hours of reminders in each day +set busy_algorithm="1" +# for busy_algorithm="2", assume that untimed reminders occupy this many minutes +set untimed_duration="60" + +# if busy_algorithm="1", number of reminders per day allowed for each calendar +# colorization level; if busy_algorithm="2", use number of hours of reminders +# per day +set busy_level1="1" # level1 color +set busy_level2="3" # level2 color +set busy_level3="5" # level2 color, bold +set busy_level4="7" # level3 color + # (everything else is level3 color, bold) + + +# first day of the week is Monday +set week_starts_monday="true" + +# 12/24 hour time settings +set schedule_12_hour="false" +set selection_12_hour="true" +set status_12_hour="true" +set description_12_hour="true" + +# whether or not to keep the cursor centered when scrolling through timed +# reminders +set center_cursor="false" + +# date syntax for the 'go to date' command can be big or little endian +set goto_big_endian="true" +# date syntax for the "quick reminder" command can be US style +# (6/1 -> June 1) or non-US style (6/1 -> January 6) +set quick_date_US="false" + +# whether or not to number weeks within the month calendar +set number_weeks="false" + +# whether or not the cursor should follow the current time +# after pressing the "home" key +set home_sticky="true" + +# whether or not to display advance warnings +set advance_warning="false" + +# width of the untimed reminders window +set untimed_window_width="40" + +# whether or not to render untimed reminders in boldface +set untimed_bold="true" + + +# key bindings +bind "j" scroll_down +bind "" scroll_down +bind "k" scroll_up +bind "" scroll_up +bind "h" switch_window +bind "l" switch_window +bind "" switch_window +bind "" switch_window +bind "" previous_day +bind "4" previous_day +bind "<" previous_day +bind "H" previous_day +bind "" next_day +bind "6" next_day +bind ">" next_day +bind "L" next_day +bind "8" previous_week +bind "[" previous_week +bind "K" previous_week +bind "2" next_week +bind "]" next_week +bind "J" next_week +bind "{" previous_month +bind "}" next_month +bind "" home +bind "g" goto +bind "z" zoom +bind "" edit +bind "" edit +bind "e" edit_any +bind "y" copy +bind "X" cut +bind "p" paste +bind "P" paste_dialog +bind "d" scroll_description_up +bind "D" scroll_description_down +#bind "q" quick_add +bind "t" new_timed +bind "T" new_timed_dialog +bind "u" new_untimed +bind "U" new_untimed_dialog +bind "w" new_template0 +bind "W" new_template1 +bind "m" new_template2 +bind "M" new_template3 +bind "n" search_next +bind "/" begin_search +bind "" next_reminder +bind "r" view_remind +bind "R" view_remind_all +bind "c" view_week +bind "C" view_month +bind "?" help +bind "\\Cl" refresh +#bind "Q" quit +bind "q" quit + +bind "" entry_complete +bind "" entry_complete +bind "" entry_backspace +bind "" entry_cancel + + +# set up the colors +color help white magenta +color timed_default white black +color timed_current white magenta +color timed_reminder1 white blue +color timed_reminder2 white red +color timed_reminder3 white green +color timed_reminder4 yellow magenta +color untimed_reminder white black +color timed_date magenta black +color selection_info white magenta +color description white black +color status white magenta +color calendar_labels white black +color calendar_level1 white black +color calendar_level2 magenta black +color calendar_level3 red black +color calendar_today magenta white +color left_divider magenta magenta +color right_divider magenta magenta + -- cgit v1.2.3