Mint: Difference between revisions
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
== Mint 17.1: Edge Snapping == | == Mint 17.1: Edge Snapping == | ||
* http://ssokolow.com/quicktile/ | * http://ssokolow.com/quicktile/ | ||
== shutdown dialog == | |||
<pre> | |||
shutdown -P +1 & | |||
zenity --question --text="Shutdown now ? Automatic shutdown in 60 seconds" --ok-label="DOIT" | |||
if [ $? -eq 0 ];then | |||
shutdown -c | |||
shutdown -P now | |||
else | |||
shutdown -c | |||
fi | |||
</pre> | |||
<pre> | |||
zenity --question --text="Shutdown now ? Autoshutdown in 60 seconds" \ | |||
--cancel-label="DOIT" --ok-label="NOPE" --timeout=60 || | |||
dbus-send --system --print-reply --dest=org.freedesktop.login1 \ | |||
/org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true | |||
</pre> |
Revision as of 16:16, 24 February 2016
Mint 15 UEFI Boot
- sudo add-apt-repository ppa:yannubuntu/boot-repair
- sudo apt-get update
- sudo apt-get install boot-repair
- run boot-repair
Mint 17.1: Edge Snapping
shutdown dialog
shutdown -P +1 & zenity --question --text="Shutdown now ? Automatic shutdown in 60 seconds" --ok-label="DOIT" if [ $? -eq 0 ];then shutdown -c shutdown -P now else shutdown -c fi
zenity --question --text="Shutdown now ? Autoshutdown in 60 seconds" \ --cancel-label="DOIT" --ok-label="NOPE" --timeout=60 || dbus-send --system --print-reply --dest=org.freedesktop.login1 \ /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true