Files
mini_projects/scryfall_deser/scripts/search_with_rofi.sh
Arthur Roberts b6664492fa Improved Null in db
Fixed the rofi error window from instantly being removed with
a double click - there's probably a better way like using some
IGNORE_FIRST_CLICK_FOR_10ms or something
2025-08-19 23:21:42 +01:00

13 lines
387 B
Bash
Executable File

#!/bin/bash
CARDS=$(/home/arthurr/code/mini_projects/scryfall_deser/target/debug/scryfall_deser $@)
SELECTION=$(rofi -dmenu <<< "$CARDS")
CARD_OUTPUT=$(/home/arthurr/code/mini_projects/scryfall_deser/target/debug/scryfall_deser --exact $SELECTION)
# If you double check the first rofi selection it seems to prevent the error window from popping up
sleep 0.05
rofi -e "$CARD_OUTPUT"