aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/rofi-pass/config2
-rwxr-xr-x.local/share/bin/rofi12
2 files changed, 4 insertions, 10 deletions
diff --git a/.config/rofi-pass/config b/.config/rofi-pass/config
index 9b50ac0..d118659 100644
--- a/.config/rofi-pass/config
+++ b/.config/rofi-pass/config
@@ -1,2 +1,2 @@
#!/bin/sh
-default_autotype='path :tab pass'
+USERNAME_field='path'
diff --git a/.local/share/bin/rofi b/.local/share/bin/rofi
index 5157741..771b522 100755
--- a/.local/share/bin/rofi
+++ b/.local/share/bin/rofi
@@ -1,11 +1,5 @@
#!/bin/sh
-
-get_color() {
- xrdb -query | grep $1 | head -n1 | cut -f2
-}
-
-export ROFIBGCOLOR="$(get_color background)"
-export ROFIFGCOLOR="$(get_color foreground)"
-export ROFIACCOLOR="$(get_color color5)"
-
+export ROFIBGCOLOR="$(xrdb -get background)"
+export ROFIFGCOLOR="$(xrdb -get foreground)"
+export ROFIACCOLOR="$(xrdb -get color5)"
/bin/rofi -no-default-config "$@"