Add Calendar install script
This commit is contained in:
@@ -1,6 +1,47 @@
|
||||
#+TITLE:Calendar and Contact Configuration
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
* Calendar Install Script
|
||||
:PROPERTIES:
|
||||
:header-args:bash: :tangle scripts/install-calendar.sh :shebang "#!/bin/bash" :mkdirp yes
|
||||
:END:
|
||||
|
||||
Calendar/contact documentation: [[file:calendar-contact.org][calendar-contact.org]]
|
||||
|
||||
#+begin_src bash
|
||||
set -euo pipefail
|
||||
|
||||
DOTFILES="${HOME}/.config/literate-dotfiles"
|
||||
|
||||
tangle() {
|
||||
emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/$1\")"
|
||||
}
|
||||
#+end_src
|
||||
|
||||
** Packages
|
||||
|
||||
#+begin_src bash
|
||||
echo "==> Calendar and contacts packages"
|
||||
paru -S --needed \
|
||||
vdirsyncer \
|
||||
khal \
|
||||
khard
|
||||
#+end_src
|
||||
|
||||
** Tangle Systemd Configs
|
||||
|
||||
#+begin_src bash
|
||||
echo "==> Tangling systemd configs for calendar"
|
||||
tangle "systemd.org"
|
||||
#+end_src
|
||||
|
||||
** Systemd Timer
|
||||
|
||||
#+begin_src bash
|
||||
echo "==> Enabling vdirsyncer timer"
|
||||
systemctl --user enable --now vdirsyncer.timer
|
||||
#+end_src
|
||||
|
||||
* =vdirsyncer= - Synchronize calendars and contacts
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/vdirsyncer/config
|
||||
|
||||
Reference in New Issue
Block a user