This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/os/linux/bin/wm
2023-06-06 01:33:40 -05:00

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