This commit is contained in:
EdenQwQ 2025-03-01 22:35:08 +08:00
commit 96895ec3aa
100 changed files with 6349 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#!/bin/sh
tmpfile=~/scripts/tofi/stored_commands
stored=$(cat $tmpfile)
command=$(echo "$stored" | tofi --require-match=false)
if [ -z "$command" ]; then
exit 1
fi
exec $command &
if grep -q "$command" "$tmpfile"; then
exit 1
fi
echo "$command" >> $tmpfile