From b1f98f302b57f009492fac779ff2e8471dffa2b3 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 28 Feb 2024 11:07:53 +0100 Subject: fix rofi-pass + rofi wrapper inefficiencies --- .config/rofi-pass/config | 2 +- .local/share/bin/rofi | 12 +++--------- 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 "$@" -- cgit v1.2.3