I use the same in my i3 setup.
]]>xterm -e "sudo shutdown -h now"
xterm -e "sudo shutdown -r now"
If you don't want to enter your password everytime, just add it to your sudoers files.
Or if you really don't mind switching DE, you could try Xfce.
]]>I have never used LXDE, but it seems strange to me that they would still require PolicyKit files considering that HAL has been deprecated and most apps now tend to shy away from using it.
]]>when i typed this in the terminal :
dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
i got this :
Error org.freedesktop.ConsoleKit.Manager.NotPrivileged: Not Authorized
exec ck-launch-session startlxde
[root@myhost cobra]# grep cobra /etc/group
network:x:90:cobra
audio:x:92:cobra
power:x:98:cobra
here is my PolicyKit.conf file :
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"[url]http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd[/url]">
<!-- See the manual page PolicyKit.conf(5) for file format -->
<config version="0.1">
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.shutdown">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.reboot">
<return result="yes"/>
</match>
</config>
and this is my daemons array :
DAEMONS=(syslog-ng dbus hal networkmanager crond alsa b43)