Monday, October 26, 2015

i3wm Poweroff.sh

 2080  while read file;do echo;echo;history|tail -1;echo Filename: "${file}";cat "${file}";echo;echo;echo;done
Filename: Poweroff.sh
#!/bin/bash
# poweroff without password

dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" \
/org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

#

No comments:

Post a Comment

This is Charles Weldon Witt. Thank you for commenting on my blog.