gabrielzschmitz / dotfiles

A rice focused in speed, produtivity and to suck less.
GNU General Public License v3.0
27 stars 2 forks source link

Power off button not working. #4

Closed n0yal closed 3 years ago

n0yal commented 3 years ago

Getting this error when i run powermenu.sh

powermenu.sh: 43: i3exit: not found

I cannot find i3exit in my repositories. How to install it or can you send it?

gabrielzschmitz commented 3 years ago

Just change this part of the power menu script (using loginctl isted of i3exit)

chosen="$(echo -e "$options" | dmenu)"
case $chosen in
    $lock)
        sh ~/.scripts/zerolock.sh
        ;;
    $suspend)
        loginctl suspend
        ;;
    $logout)
        loginctl terminate-session $XDG_SESSION_ID
    ;;
    $reboot)
        loginctl reboot
        ;;
    $shutdown)
            loginctl poweroff
        ;;
esac

It is in the Debian repositorys