add AwesomeWM logout support

The powermenu script did not handle AwesomeWM sessions for the logout option.  
This commit adds proper support by calling `awesome-client "awesome.quit()"`  
when the `$DESKTOP_SESSION` is set to `awesome`.
This commit is contained in:
megvadulthangya 2025-09-27 23:05:41 +02:00 committed by GitHub
parent 0751015425
commit 8a35286e19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,6 +82,8 @@ run_cmd() {
i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
elif [[ "$DESKTOP_SESSION" == 'awesome' ]]; then
awesome-client "awesome.quit()"
fi
fi
else