10 lines
238 B
Plaintext
10 lines
238 B
Plaintext
|
#!/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
|