nixos/home/desktop/scripts/logout-utility

10 lines
238 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
if [[ "$XDG_CURRENT_DESKTOP" == "Hyprland" ]]; then
hyprctl dispatch exit
elif [[ "$XDG_CURRENT_DESKTOP" == "sway" ]]; then
swaymsg exit
else
echo "Unsupported desktop environment $XDG_CURRENT_DESKTOP"
fi