Add Calendar install script
This commit is contained in:
@@ -1,6 +1,47 @@
|
|||||||
#+TITLE:Calendar and Contact Configuration
|
#+TITLE:Calendar and Contact Configuration
|
||||||
#+SETUPFILE: ./setup/org-setup-file.org
|
#+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
|
* =vdirsyncer= - Synchronize calendars and contacts
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/.config/vdirsyncer/config
|
:header-args: :tangle ~/.config/vdirsyncer/config
|
||||||
|
|||||||
@@ -1,9 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
DOTFILES="${HOME}/.config/literate-dotfiles"
|
||||||
|
|
||||||
|
tangle() {
|
||||||
|
emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/$1\")"
|
||||||
|
}
|
||||||
|
|
||||||
echo "==> Calendar and contacts packages"
|
echo "==> Calendar and contacts packages"
|
||||||
paru -S --needed \
|
paru -S --needed \
|
||||||
vdirsyncer \
|
vdirsyncer \
|
||||||
khal \
|
khal \
|
||||||
khard \
|
khard
|
||||||
mu
|
|
||||||
|
echo "==> Tangling systemd configs for calendar"
|
||||||
|
tangle "systemd.org"
|
||||||
|
|
||||||
|
echo "==> Enabling vdirsyncer timer"
|
||||||
|
systemctl --user enable --now vdirsyncer.timer
|
||||||
|
|||||||
Reference in New Issue
Block a user