about summary refs log tree commit diff stats
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/config.pl36
-rw-r--r--share/leo.conf15
2 files changed, 15 insertions, 36 deletions
diff --git a/share/config.pl b/share/config.pl
deleted file mode 100644
index 7d542f3..0000000
--- a/share/config.pl
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/perl
-
-use strict;
-use warnings;
-
-my $gpg_fingerprint = "D9AE4AEEE1F1B3598E81D9DFB67D55D482A799FD";
-my $gpg_bin = "gpg2";
-
-my %profile = (
-    journal => [qw( documents/andinus.org.gpg
-                    documents/archive.org.gpg )],
-    emacs   => [qw( .emacs.d .elfeed .org-timestamps )],
-    config  => [qw( .config .kshrc .kshrc.d .tmux.conf .xsession .remind
-                    .screenlayout .mg .mbsyncrc .fehbg .profile .plan
-                    .authinfo.gpg .Xresources )],
-);
-
-# Add more directories to %profile.
-foreach my $tmp_prof (qw( emails music projects documents videos .ssh
-                          downloads pictures .password-store .mozilla
-                          fortunes )) {
-    $profile{$tmp_prof} = [$tmp_prof];
-}
-
-# Aliases.
-$profile{ssh} = $profile{".ssh"};
-$profile{pass} = $profile{".password-store"};
-$profile{mozilla} = $profile{".mozilla"};
-
-
-sub get_gpg_fingerprint { return $gpg_fingerprint; }
-sub get_profile { return %profile; }
-sub get_gpg_bin { return $gpg_bin; }
-sub get_backup_dir { return "/tmp/backups" }
-
-1;
diff --git a/share/leo.conf b/share/leo.conf
new file mode 100644
index 0000000..d909446
--- /dev/null
+++ b/share/leo.conf
@@ -0,0 +1,15 @@
+backup_dir = /home/andinus/backups
+
+gpg_fingerprint = D9AE4AEEE1F1B3598E81D9DFB67D55D482A799FD
+gpg_bin = gpg2
+
+# Profile names in [].
+[journal]
+# Paths to backup. '=' after path is important.
+/home/andinus/documents/andinus.org.gpg =
+/home/andinus/documents/archive.org.gpg =
+
+[emacs]
+/home/andinus/.emacs.d =
+/home/andinus/.elfeed =
+/home/andinus/.org-timestamps =