Some changes
This commit is contained in:
@ -2,4 +2,13 @@
|
||||
|
||||
local resp="$(printf 'No\nYes\n' | fuzzel --dmenu --prompt 'Really Logout> ')"
|
||||
|
||||
[[ "${resp}" == 'Yes' ]] && riverctl exit
|
||||
if [[ "${resp}" == 'Yes' ]]; then
|
||||
case "${XDG_CURRENT_DESKTOP}" in
|
||||
Hyprland)
|
||||
hyprctl dispatch exit
|
||||
;;
|
||||
river)
|
||||
riverctl exit
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
@ -36,3 +36,9 @@ case "${choice}" in
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${XDG_CURRENT_DESKTOP}" == 'river' ]]; then
|
||||
eww -c "${HOME}/.config/river/config/" update swayidle="$(( ! ${choice} ))"
|
||||
elif [[ "${XDG_CURRENT_DESKTOP}" == 'Hyprland' ]]; then
|
||||
pkill -SIGRTMIN+1 waybar
|
||||
fi
|
||||
|
Reference in New Issue
Block a user