LumeinshinScripts/Misc/verse2.sh
Lumeinshin 2a61e39431 Upload files to 'Misc'
Loads the contents of verse and outputs it via rofi.
could have done it via dunst but whatever lol.

tweaked via gpt
2023-04-19 06:31:59 -07:00

12 lines
343 B
Bash

#!/bin/bash
# Display verse in rofi popup
selected=$(echo " " | rofi -dmenu -p "Verse" -l 10 -location 0 -width 100 -lines 10 -font "Hack 12" -mesg "$(verse)" -no-custom)
# Check if user pressed escape
if [[ "$selected" == "" ]]; then
exit 0
fi
# Save verse to file and open in mousepad
echo "$(verse)" > verse.txt && mousepad verse.txt