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
This commit is contained in:
Lumeinshin 2023-04-19 06:31:59 -07:00
parent f5aa753447
commit 2a61e39431

12
Misc/verse2.sh Normal file
View File

@ -0,0 +1,12 @@
#!/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