20 lines
337 B
Bash
Executable file
20 lines
337 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
# sway
|
|
|
|
if [ "$1" = 'hyprland' ]; then
|
|
c="$HOME/.config"
|
|
ev="$c/hypr/hyprland.conf"
|
|
ee="$c/lytedev-env"
|
|
for e in "host-desktop" "host-laptop"; do
|
|
f="$ee/$e/hyprland.d.conf"
|
|
[ -f "$f" ] && ev="$f"
|
|
done
|
|
|
|
echo "Using config $ev"
|
|
|
|
exec Hyprland -c "$ev"
|
|
else
|
|
exec "$(dirname "$0")/../sway/init"
|
|
fi
|