2019-09-22 13:52:58 +03:00
|
|
|
OPTIONS="Reboot\nPoweroff\nSuspend\nHibernate\nLogout\nLock\n"
|
|
|
|
|
|
|
|
if [ "$@" ]
|
|
|
|
then
|
|
|
|
case $@ in
|
|
|
|
Exit)
|
|
|
|
i3-msg exit
|
|
|
|
;;
|
2019-09-26 23:23:22 +03:00
|
|
|
Logout)
|
|
|
|
i3-msg exit
|
|
|
|
;;
|
2019-09-22 13:52:58 +03:00
|
|
|
Reboot)
|
|
|
|
systemctl reboot
|
|
|
|
;;
|
|
|
|
Poweroff)
|
|
|
|
systemctl poweroff
|
|
|
|
;;
|
|
|
|
Suspend)
|
2019-09-26 23:23:22 +03:00
|
|
|
systemctl suspend
|
2019-09-22 13:52:58 +03:00
|
|
|
;;
|
|
|
|
Hibernate)
|
2019-09-26 23:23:22 +03:00
|
|
|
systemctl hibernate
|
2019-09-22 13:52:58 +03:00
|
|
|
;;
|
2020-12-06 23:08:50 +02:00
|
|
|
Lock)
|
2021-04-27 23:25:21 +03:00
|
|
|
#i3lock -k -i /usr/share/backgrounds/archlinux/wave.png --timecolor FFFFFF --datecolor FFFFFF --ignore-empty-password --show-failed-attempts -C
|
|
|
|
"i3lock"
|
2020-12-06 23:08:50 +02:00
|
|
|
;;
|
2019-09-22 13:52:58 +03:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
echo -en $OPTIONS
|
|
|
|
fi
|