Some changes

This commit is contained in:
2025-02-04 21:02:12 -08:00
parent f40f9f5277
commit ee1321e857
6 changed files with 83 additions and 28 deletions

View File

@ -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

View File

@ -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