dotfiles-remastered/.config/i3/pm.sh

27 lines
311 B
Bash
Raw Normal View History

2020-06-11 14:12:10 +00:00
#!/usr/bin/env bash
if [ "$@" ]
then
case "$@" in
"Shutdown")
shutdown now
;;
"Reboot")
reboot
;;
"Logout")
i3-msg exit
;;
"Hibernate")
systemctl hibernate
;;
esac
exit 0
else
echo -en "Shutdown\n"
echo -en "Reboot\n"
echo -en "Logout\n"
echo -en "Hibernate\n"
fi