Remove Hyprland support from desktop profile

This commit is contained in:
Fabio Scotto di Santolo
2026-04-17 12:15:41 +02:00
parent b6b905b8b3
commit 12fe272cbb
21 changed files with 6 additions and 509 deletions

View File

@@ -22,18 +22,11 @@ case "${XDG_CURRENT_DESKTOP:-}" in
--indicator \
--clock
;;
*Hyprland*|*hyprland*)
exec hyprlock
;;
*i3*|*I3*)
exec "$HOME/.config/i3/scripts/lockscreen"
;;
esac
if command -v hyprlock >/dev/null 2>&1; then
exec hyprlock
fi
if command -v swaylock >/dev/null 2>&1; then
exec swaylock -f
fi

View File

@@ -20,9 +20,6 @@ case "$choice" in
*sway*|*Sway*)
swaymsg exit
;;
*Hyprland*|*hyprland*)
hyprctl dispatch exit
;;
*i3*|*I3*)
i3-msg exit
;;

View File

@@ -1,23 +0,0 @@
#!/bin/sh
[ $# -gt 0 ] || set -- Hyprland
[ -r /etc/profile ] && . /etc/profile
[ -r "$HOME/.profile" ] && . "$HOME/.profile"
set -e
session_name=${1##*/}
export XDG_CURRENT_DESKTOP="$session_name"
export XDG_SESSION_DESKTOP="$session_name"
export XDG_SESSION_TYPE=wayland
export SSH_AUTH_SOCK="$HOME/.local/state/ssh-agent/socket"
exec dbus-run-session sh -eu -c '
umask 077
printf "%s\n" "$DBUS_SESSION_BUS_ADDRESS" > "$HOME/.dbus-session-bus-address"
gpgconf --launch gpg-agent
"$HOME/.local/bin/update-turnstile-env"
exec "$@"
' sh "$@"