Loads the contents of verse and outputs it via rofi. could have done it via dunst but whatever lol. tweaked via gpt
12 lines
343 B
Bash
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 |