added hyprland and hyprlock support for powermenus

This commit is contained in:
Kamil Golański
2024-04-19 10:45:05 +02:00
parent 7e236dd67f
commit f78ad07406
6 changed files with 24 additions and 0 deletions
+4
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" == 'hyprland' ]]; then
hyprctl dispatch exit
fi
fi
else
@@ -106,6 +108,8 @@ case ${chosen} in
betterlockscreen -l
elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock
elif [[ -x '/usr/bin/hyprlock' ]]; then
hyprlock
fi
;;
$suspend)