This commit is contained in:
2026-04-25 20:41:43 +02:00
parent 12d3fdcaa5
commit de839f7faf
15 changed files with 0 additions and 539 deletions
@@ -1,35 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
# Description:
# Updates configurations of several apps according to the current (or given as parameter) desktop environment.
desktop=${1:-${XDG_CURRENT_DESKTOP:-default}}
alt() {
local item profile
item=$1
profile=$2
if [[ -e $HOME/.config/.alt/${item}-${profile} ]]; then
ln -svfT ".alt/${item}-${profile}" "$HOME/.config/$item"
elif [[ -e $HOME/.config/.alt/${item}-default ]]; then
ln -svfT ".alt/${item}-default" "$HOME/.config/$item"
fi
}
for item in "kitty" "wlogout" "ghostty"; do
if [[ ! -L $HOME/.config/$item ]] && [[ -e $HOME/.config/$item ]]; then
echo "Error: $HOME/.config/$item exists and is not a symlink." >&2
exit 1
fi
case "$desktop" in
niri | GNOME)
alt "$item" niri
;;
*)
alt "$item" default
;;
esac
done