Yad Logout for both systemd & sysvinit

Here you can exchange scripts that you created or have permission to share with other users.
Post Reply
Message
Author
User avatar
manyroads
Posts: 2624
Joined: Sat Jun 30, 2018 6:33 pm

Yad Logout for both systemd & sysvinit

#1 Post by manyroads »

For any who'd like this... I have built and tested the following Yad Logout Options script on both systemd & SysVinit MX21 (beta2). It works on both for me. Feel free to use this, as you see fit.

Here's a scrot:

Image
YAD Logout.png
YAD Script:

Code: Select all

#! /bin/bash
yad --center --borders=1 --on-top --sticky --single-click --title='Logout Options' \
	--buttons-layout=center \
	--window-icon="gtk-quit: exit" \
	--button="Logout!system-log-out:kill -9 -1" \
	--button="Reboot!system-reboot:sudo reboot" \
	--button="Shutdown!system-shutdown:sudo poweroff" \
	--button="Suspend!system-suspend:sudo pm-suspend" \
	--button=Cancel:0 \
Remember, like with all of my work, I am able to provide the following assurance(s):

It is almost certainly going to work until it breaks; although I have to admit it may never work and that would be sad.
When/if it does break, you may keep all of the pieces.
If you find my materials helpful, both you & I will be happy, at least for a little while.
My advice is worth every penny you paid for it!
You do not have the required permissions to view the files attached to this post.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

Post Reply

Return to “Scripts”