From 2924585a753cc13f15335dea3e92255499735611 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 2 Mar 2021 14:12:29 -0600 Subject: [PATCH] Making rofi-pass use proper rofi and feh --- rofi/rofi-pass/config | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rofi/rofi-pass/config b/rofi/rofi-pass/config index 95b31b7..125a1ce 100644 --- a/rofi/rofi-pass/config +++ b/rofi/rofi-pass/config @@ -2,9 +2,17 @@ # which can be switched at runtime with shift+left/right # root=/path/to/root +if [ $(hostname) = "chris-linuxlaptop" ]; then + style="laptop" + #echo "this is hidpi" +else + style="desktop" + #echo "this is not hidpi" +fi + # rofi command. Make sure to have "$@" as last argument _rofi () { - rofi -i -no-auto-select "$@" + rofi -i -no-auto-select -theme launchers-git/"$style".rasi "$@" } # default command to generate passwords @@ -16,7 +24,7 @@ _pwgen () { # qrencode is needed to generate the image and a viewer # that can read from pipes. Known viewers to work are feh and display _image_viewer () { - sxiv - + feh -g 600x600 --zoom fill - # display }