aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-05-24 07:28:49 +0200
committerRasmus Steinke <rasi@xssn.at>2015-05-24 07:28:49 +0200
commit725d32a9aeb89cfb8b934b4e36925c8842aff48e (patch)
treef10aead99b7e9d21d9f87ba1d87b70d5c0604795
parent139c8f2135515ceb087c99746de06931aea04dad (diff)
downloadrofi-pass-725d32a9aeb89cfb8b934b4e36925c8842aff48e.tar.gz
make color for help messages customizable
-rw-r--r--config.example4
-rwxr-xr-xrofi-pass4
2 files changed, 6 insertions, 2 deletions
diff --git a/config.example b/config.example
index 36b84bc..9afa699 100644
--- a/config.example
+++ b/config.example
@@ -11,3 +11,7 @@ EDITOR='gvim -f'
# Browser
BROWSER='chromium'
+
+## Misc settings
+
+help_color="#0C73C2"
diff --git a/rofi-pass b/rofi-pass
index 6e35eec..b49dae3 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -48,7 +48,7 @@ notify () {
mainMenu () {
#notify
- HELP='<span color="#0C73C2">Alt+1: Autotype | Alt+2: Type User | Alt+3: Type Password
+ HELP='<span color="$help_color">Alt+1: Autotype | Alt+2: Type User | Alt+3: Type Password
Alt+4: Open URL | Alt+5: Show/Edit</span>'
selected_password="$(echo -e "[ Add Entry ]\n---\n$(list_passwords 2>/dev/null)" | rofi -mesg "${HELP}" -dmenu -select "$entry" -p "rofi-pass > ")"
rofi_exit=$?
@@ -143,7 +143,7 @@ Alt+4: Open URL | Alt+5: Show/Edit</span>'
show () {
while true; do
- menu=$(echo -e "Return to Main Menu\n---\nEdit Entry\n---\n$(pass "$selected_password")" | rofi -dmenu -mesg '<span color="#FFB2B2">Alt+1: Copy Selection to Clipboard (Default) | Alt+2: Open Selection in Browser</span>' -p "Choose Entry > ")
+ menu=$(echo -e "Return to Main Menu\n---\nEdit Entry\n---\n$(pass "$selected_password")" | rofi -dmenu -mesg '<span color="$help_color">Alt+1: Copy Selection to Clipboard (Default) | Alt+2: Open Selection in Browser</span>' -p "Choose Entry > ")
val=$?