about summary refs log tree commit diff stats
path: root/share
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-08-31 17:06:03 +0530
committerAndinus <andinus@nand.sh>2020-08-31 17:06:03 +0530
commit4648948ddb3cc0a3f046df50cccfe74a2da2e6d1 (patch)
tree5feb12c642cc8a9dbe1e46b5da29fcb5c1aa7d0d /share
parentc5295e12c7d1ec71f234dda8a69a0093157b0e64 (diff)
downloadleo-4648948ddb3cc0a3f046df50cccfe74a2da2e6d1.tar.gz
Move configuration to a config file
I'll switch to some other config format later, this format is not safe
at all!
Diffstat (limited to 'share')
-rw-r--r--share/config.pl35
1 files changed, 35 insertions, 0 deletions
diff --git a/share/config.pl b/share/config.pl
new file mode 100644
index 0000000..caee891
--- /dev/null
+++ b/share/config.pl
@@ -0,0 +1,35 @@
+#!/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; }
+
+1;