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:
parent
f5aa753447
commit
2a61e39431
12
Misc/verse2.sh
Normal file
12
Misc/verse2.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user