my nixos dotfiles :3 (git.koi.rip mirror) git.koi.rip/koi/dotfiles
linux dotfiles neovim nixos catppuccin

refact(scripts.ff): use mktemp for kitget output

Signed-off-by: adam <me@adamperkowski.dev>

authored by

system72 and committed by koi.rip 939d7dc7 219e0af2

+2 -2
+2 -2
external/scripts/ff.sh
··· 7 7 exit 0 8 8 fi 9 9 10 - kitget_output="/tmp/$(date +%s)" 10 + kitget_output="$(mktemp --suffix=-kitget.png)" 11 11 12 - if [[ -n $FF_NO_KITGET ]] || [[ ! $(kitget --square -o "$kitget_output") ]]; then 12 + if [[ -n $FF_NO_KITGET ]] || ! kitget --square -o "$kitget_output" &>/dev/null; then 13 13 fastfetch --logo nixos_small --logo-padding-top 3 "$@" 14 14 else 15 15 fastfetch --kitty "$kitget_output" "$@"