Rofi logout script

Here is a simple rofi logout script that I’m using on my i3 setup.

Put it in place and bind it to a shortcut.
For i3 e.g.: “bindsym $mod+Shift+e exec ~/.bin/rofi-logout”

#!/bin/bash

cmd=$(echo -e “suspend\nlogout\nreboot\npoweroff” | rofi -width 350 -dmenu -p system:)
case $cmd in
suspend)
systemctl suspend ;;
logout)
i3-msg exit ;;
reboot)
systemctl reboot ;;
poweroff)
systemctl poweroff ;;
esac

2 Likes

Danke schön , keep them tips coming up.

I don t know much German .

Welcome to the forum @crian, I bet we will here again from you! Keep the good stuff coming!

1 Like

Awesome thanks for sharing.

Cool, and welcome to the forum @crian. Any more ideas you have will be welcomed. And check out ideas from those on this forum and hope they will be of use.

1 Like