From f4255a9578168e2f94180e65c616ab25ef1385b4 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Fri, 22 May 2015 22:15:14 +0200 Subject: [PATCH] Add config files and Makefile --- Makefile | 9 +++++++++ config.example | 5 +++++ rofi-pass | 2 ++ 3 files changed, 16 insertions(+) create mode 100644 Makefile create mode 100644 config.example diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3176b03 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +ifndef PREFIX + PREFIX=/usr/local +endif + +install: + install -Dm755 rofi-pass $(DESTDIR)$(PREFIX)/bin/rofi-pass + install -Dm644 config.example $(DESTDIR)$(PREFIX)/share/doc/rofi-pass/config.example + install -Dm644 README.md $(DESTDIR)$(PREFIX)/share/doc/rofi-pass/README.md + install -Dm644 config.example $(DESTDIR)/etc/rofi-pass.conf diff --git a/config.example b/config.example new file mode 100644 index 0000000..20d95e8 --- /dev/null +++ b/config.example @@ -0,0 +1,5 @@ +basedir=~/.password-store/ +URL_field='URL' +USERNAME_field='UserName' +EDITOR='gvim -f' + diff --git a/rofi-pass b/rofi-pass index 8d8cbaa..077e7b1 100755 --- a/rofi-pass +++ b/rofi-pass @@ -5,6 +5,8 @@ # (c) 2015 Thore Bödecker shopt -s nullglob globstar +source /etc/rofi-pass.conf +source $HOME/.config/rofi-pass/config basedir=~/.password-store/ URL_field='URL'