aboutsummaryrefslogtreecommitdiff
path: root/.local/share
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-28 11:07:53 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-28 11:07:53 +0100
commitb1f98f302b57f009492fac779ff2e8471dffa2b3 (patch)
tree01c8b9019f1102cdb6569f9c3940ce9bed4730c4 /.local/share
parente5e67f25eb9fb5f52997721cf2142468542ffaa9 (diff)
fix rofi-pass + rofi wrapper inefficiencies
Diffstat (limited to '.local/share')
-rwxr-xr-x.local/share/bin/rofi12
1 files changed, 3 insertions, 9 deletions
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 "$@"