Linux
Welcome to c/linux!
Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!
Rules:
-
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
-
Be respectful: Treat fellow community members with respect and courtesy.
-
Quality over quantity: Share informative and thought-provoking content.
-
No spam or self-promotion: Avoid excessive self-promotion or spamming.
-
No NSFW adult content
-
Follow general lemmy guidelines.
view the rest of the comments
fortune cookie -s | cowsay_random | xmessage -xrm "*message.scrollVertical: Never" -buttons "" -nearmouse -bg gray -fg black -font 7x13bold -file -
Requires that
fortune
be installed along with the eponymouscookie
fortunes set (these usually come with the default install).cowsay_random
is not installed fully working by default but can usually be found among the files installed withcowsay
. (The#!
header might need to be updated to usepython2
instead of justpython
as I found out when testing this)xmessage
is a seriously old program but it works just fine. The command line supplied pops up the output of the preceding commands near where the mouse is on the screen. The-file -
bit is necessary to read the pipeline.See the man page for
xmessage
if any of the other options aren't too clear.Your further mission is to arrange for this to trigger somehow or another, be that at random or when some other event occurs.
Caveats: 1) No idea if this works on Wayland. 2) No ANSI colour code support, so no
lolcat
. Figure out a way to use anxterm
or something if that's what you want.