Monday, October 26, 2015

i3wm Reboot.sh

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

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

#

No comments:

Post a Comment

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