From 290f6866441a8e9db1c6c42d6e6c74a84d96a841 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 14 Sep 2021 13:35:23 +0530 Subject: adds remind --- config/remind/.wyrdrc | 169 ++++++++++++++++++++++++++++++++++++++++++++++++++ home.nix | 41 ++++-------- 2 files changed, 182 insertions(+), 28 deletions(-) create mode 100644 config/remind/.wyrdrc diff --git a/config/remind/.wyrdrc b/config/remind/.wyrdrc new file mode 100644 index 0000000..18ccf10 --- /dev/null +++ b/config/remind/.wyrdrc @@ -0,0 +1,169 @@ +# Wyrd run-configuration file + +# command for the Remind executable +set remind_command="remind" +# the default reminder file or directory to display +set reminders_file="$HOME/nixos/extras/notes/schedule/reminders.rem" +# command for editing an old appointment, given a line number %line% and filename %file% +set edit_old_command="sensible-editor +%line% \"%file%\"" +# command for editing a new appointment, given a filename %file% +set edit_new_command="sensible-editor +999999 \"%file%\"" +# command for free editing of the reminders file, given a filename %file% +set edit_any_command="sensible-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% RUN notify-send " + +# 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 Sunday +set week_starts_monday="false" + +# 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="true" + +# 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 +# Bindings: Movement +bind "j" scroll_down +bind "" scroll_down +bind "k" scroll_up +bind "" scroll_up +bind "h" switch_window +bind "l" switch_window +bind "H" previous_day +bind "L" next_day +bind "J" next_week +bind "K" previous_week + +bind "{" previous_month +bind "}" next_month + +bind "." home +bind "" next_reminder + +bind "g" goto + +# Edit +bind "" edit +bind "" edit +bind "e" edit_any + +bind "z" zoom +bind "y" copy +bind "X" cut +bind "p" paste +bind "P" paste_dialog + +# Bindings: New event +bind "a" quick_add +bind "t" new_timed +bind "u" new_untimed +bind "w" new_template0 +bind "W" new_template1 +bind "m" new_template2 +bind "M" new_template3 + + +bind "d" scroll_description_up +bind "D" scroll_description_down +bind "T" new_timed_dialog +bind "U" new_untimed_dialog +bind "n" search_next +bind "/" begin_search +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 green magenta +color timed_default white default +color timed_current white red +color timed_reminder1 white magenta +color timed_reminder2 white red +color timed_reminder3 white green +color timed_reminder4 white magenta +color untimed_reminder white default +color timed_date cyan default +color selection_info white magenta +color description white default +color status white magenta + +color calendar_labels white default +color calendar_level1 white default +color calendar_level2 magenta default +color calendar_level3 magenta default +color calendar_today white red + +color left_divider magenta default +color right_divider magenta default + diff --git a/home.nix b/home.nix index 41e286f..08e1468 100644 --- a/home.nix +++ b/home.nix @@ -15,17 +15,17 @@ in yarn ]; - programs.emacs = { - enable = true; - }; - services.emacs = { - enable = true; - client.enable = true; - }; - programs.direnv = { - enable = true; - enableNixDirenvIntegration = true; - }; + #programs.emacs = { + #enable = true; + #}; + #services.emacs = { + #enable = true; + #client.enable = true; + #}; + #programs.direnv = { + #enable = true; + #enableNixDirenvIntegration = true; + #}; programs.lsd = { enable = true; @@ -78,23 +78,8 @@ in # ".local/share/qutebrowser/sessions".source = ./private-config/qutebrowser/sessions; ".config/dunst".source = ./config/dunst; ".config/lf".source = ./config/lf; - #"Pictures/wallpapers".source = ./extras/wallpapers; + ".config/picom.conf".source = ./config/picom.conf; + ".wyrdrc".source = ./config/remind/.wyrdrc; "scripts".source = ./scripts; }; - - #services.picom = { - #enable = true; - #backend = "glx"; - #inactiveDim = "0.3"; - #opacityRule = [ - #"98:class_g = 'St' && focused" - #"85:class_g = 'St' && !focused" - #"90:class_g = 'qutebrowser' && !focused" - #"100:class_g = 'qutebrowser' && focused" - #]; - #extraOptions = '' - #focus-exclude = [ "class_g = 'dwm'", "class_g = 'dmenu'"]; - #''; - #menuOpacity = "0.9"; - #}; } -- cgit v1.3.1