SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
#! /bin/bash
play /home/cest/toot01.wav &
answer=$(xmessage -center -print -timeout 45 -buttons LOGOUT:2,SHUTDOWN:3,HIBERNATE:4,CANCEL:5 -default LOGOUT "Checkout options, pick one:")
echo user: $answer
case $answer in
LOGOUT)
echo "Logging out"
# LOGOUT
killall -QUIT fluxbox
;;
SHUTDOWN)
echo "Shutting down"
# SHUTDOWN
sync && halt
;;
HIBERNATE)
echo "Entering hibernation"
# HIBERNATE
sudo /usr/local/sbin/sws
;;
CANCEL)
echo canceled
exit
;;
*)
echo Not possible to get an answer
exit 2
esac
this was in old times when i placed it on a button on gkrellm...
I forgot to note it might (or not) be setuid to root as it is in ~bin and quite non standard of a name it might (or again not) pose a security risk worthy (or not again!) the gain.
That might be necessary (or not) for the halt and suspend (sws) commands to work.
(or not)
Some new Fluxbox, not really done. But happy so far.
Just funny. I don't know where did you get the picture on background - but is just reminded me Alien Night one of default background for KDE 3.5 . But Alien Night is greenish.
Not much change in the design, but the only reason I'm posting this is because I've now beaten my uptime record. It's not that good, I know, but it is for me. Now, let no-one say that hibernate doesn't work in Slackware!
Just funny. I don't know where did you get the picture on background - but is just reminded me Alien Night one of default background for KDE 3.5 . But Alien Night is greenish.
Thank you, I feel that wallpaper fits good with the latest Fluxbox theme I created. This setup will run on my gaming machine which have been using Cinnamon for a very long time, but, time to go back to Fluxbox.
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,011
Rep:
Quote:
Originally Posted by SCerovec
We urgently need find more uses for it!
I am glad that you like lolcat.
Some time ago I was trying to find a way of making kernel boot messages more "interesting" and accidently I discovered lolcat.
Unfortunately the only colors that can be used for kernel boot messages are
red (1 or 9), green (2 or 10), yellow (3 or 11), blue (4 or 12) magenta (5 or 13), cyan (6 or 14), white (7 or 15), black (0) dark or bright for foreground and background (for background change need to modify vt.color entry
that can be added to lilo.conf in the line
append="vt.color=x"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.