diff options
| author | Arpit Chakladar <arpit@chakladar.me> | 2026-10-10 05:37:39 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpit@chakladar.me> | 2026-10-10 05:37:39 +0530 |
| commit | 63278454f8007cd3352641738c130ed82ca8fe3f (patch) | |
| tree | 10ca5c89e5b3001692aaae9a6642ec9be79d5fa1 /modules/office/calcurse/hooks | |
| parent | 9feb535acecac26338f481812eebb5368071ac34 (diff) | |
| download | home-manager-config-master.tar.gz home-manager-config-master.zip | |
BREAKING CHANGES: removed calcurse module, office.calcurse options won't work anymore
Diffstat (limited to 'modules/office/calcurse/hooks')
| -rw-r--r-- | modules/office/calcurse/hooks/post-save | 16 | ||||
| -rw-r--r-- | modules/office/calcurse/hooks/pre-load | 16 |
2 files changed, 0 insertions, 32 deletions
diff --git a/modules/office/calcurse/hooks/post-save b/modules/office/calcurse/hooks/post-save deleted file mode 100644 index 5d2ab1d..0000000 --- a/modules/office/calcurse/hooks/post-save +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash -# Commits and pushes the calcurse data dir after every save. -# -# Hooks hand calcurse's terminal over to whatever they run and calcurse -# waits for them to exit before redrawing, so this backgrounds the actual -# sync instead of blocking the UI on a git push. Output goes to a log -# file rather than stdout/stderr, since hooks aren't meant to be -# interactive. - -log="${XDG_DATA_HOME:-$HOME/.local/share}/calcurse/hooks.log" - -( - printf '[%s] post-save\n' "$(date '+%Y-%m-%d %H:%M:%S')" - calcurse-sync sync -) >>"$log" 2>&1 & -disown diff --git a/modules/office/calcurse/hooks/pre-load b/modules/office/calcurse/hooks/pre-load deleted file mode 100644 index bd87af3..0000000 --- a/modules/office/calcurse/hooks/pre-load +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash -# Pulls the latest calcurse data before calcurse reads it, so a fresh -# session (or a ^R reload) starts from wherever you last left off on -# another machine. -# -# Runs synchronously, unlike post-save, since the point is to have -# up-to-date data before it's loaded. Never fails calcurse's startup, -# though: if the pull can't complete (offline, no remote configured -# yet, a conflict), calcurse just opens with whatever's on disk. - -log="${XDG_DATA_HOME:-$HOME/.local/share}/calcurse/hooks.log" - -{ - printf '[%s] pre-load\n' "$(date '+%Y-%m-%d %H:%M:%S')" - calcurse-sync pull -} >>"$log" 2>&1 || true |
