A simple shutdown/restart gui
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
locale
README.md
continue_128.png
continue_48.png
continue_64.png
pyshutdown.pot
pyshutdown.py
restart_128.png
restart_48.png
restart_64.png
shutdown_128.png
shutdown_48.png
shutdown_64.png

README.md

Pyshutdown

A simple gui wrapper to restart/shutdown the system. It's usefull for a windows manager like OpenBox that doesn't have that functionality. It uses python & tkinter.

Dependencies:

tk-inter

#apt-get install python-tk

User grants

User need to be enough privilegies to shutdown/reboot the machine:

Create a new group:

sudo groupadd power

Adding your user to the group power:

sudo usermod -a -G power yourusername

Allow members of group power to shutdown without a password:

sudo visudo

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL
# Allow members of group power to shutdown (or reboot) system
%power  ALL = NOPASSWD: /sbin/shutdown

It is necessary re-login to the changes take effect.

Usage

pyshutdown.py [-h] [-l] -h Show usage -l Enable logging archive in /var/tmp/

Language support

Pyshutdown detects the current user's language and the appropiate strings are showed. At this moment only english, spanish and german are supported.

Language User Interface
English (default) Screenshot English
German Screenshot German
Spanish Screenshot Spanish

Images credits

Images from Mazenl77

Original Image Image on pyshutdown
EZ Restart Icon restart_48.png restart_64.png restart_128.png
EZ Screen Saver Icon continue_48.png continue_64.png continue_128.png
EZ Stand By Icon shutdown_48.png shutdown_64.png shutdown_64.png