Saturday, June 2, 2012

Openbox Window Manager: Oblogout

I'm using Oblogout to shutdown, restart, etc. from Openbox. It looks very nice and it's easy to configure and customize.

To configure it you will have to edit the "oblogout.conf" file. In Archlinux this file is placed in the "/etc" directory.

To shutdown and restart the system  i'm using the good old "shutdown" command, "xlock" to lock the screen and "openbox --exit" to log out.

out.sh
     1  [settings]
     2  usehal = false
     3  
     4  [looks]
     5  opacity = 70
     6  bgcolor = black
     7  buttontheme = oxygen
     8  buttons = cancel, logout, restart, shutdown, lock
     9  
    10  [shortcuts]
    11  cancel = Escape
    12  shutdown = S
    13  restart = R
    14  logout = L
    15  lock = K
    16  
    17  [commands]
    18  shutdown = sudo shutdown -h now
    19  restart = sudo shutdown -r now
    20  lock = xlock &
    21  logout = openbox --exit

To be able to restart/shutdown without root privileges I added following lines at the end of the "/etc/sudoers" file.
Remember to edit the "sudoers" file using "visudo"

out.sh
    92  %power ALL= (ALL) NOPASSWD: /sbin/shutdown
    93  %power ALL= (ALL) NOPASSWD: /sbin/reboot
    94  %power ALL= (ALL) NOPASSWD: /sbin/halt

oblogout screenshot:


1 comment:

  1. Nowsat.com is the professional in the series of full HD box , DVB-T, openbox v8s, DVB-C, android tv box and iptv box, or mxq pro and mxq pro tv box. We provide the best quality and guarantee.

    ReplyDelete