You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
364 B
29 lines
364 B
7 years ago
|
#!/usr/bin/sh
|
||
|
selection=$( \
|
||
|
echo -e "Lock\nLogout\nSuspend\nHibernate\nReboot\nShutdown" |\
|
||
|
rofi -dmenu -i -p 'Option');
|
||
|
echo $selection;
|
||
|
|
||
|
sleep .2
|
||
|
|
||
|
case $selection in
|
||
|
Lock)
|
||
6 years ago
|
i3exit lock
|
||
7 years ago
|
;;
|
||
|
Logout)
|
||
6 years ago
|
i3exit logout
|
||
7 years ago
|
;;
|
||
|
Suspend)
|
||
6 years ago
|
i3exit suspend
|
||
7 years ago
|
;;
|
||
|
Hibernate)
|
||
6 years ago
|
i3exit hibernate
|
||
7 years ago
|
;;
|
||
|
Reboot)
|
||
6 years ago
|
i3exit reboot
|
||
7 years ago
|
;;
|
||
|
Shutdown)
|
||
6 years ago
|
i3exit shutdown
|
||
7 years ago
|
;;
|
||
|
esac
|