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

20 lines
337 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env sh
2023-05-12 01:08:14 -05:00
2023-06-06 01:33:40 -05:00
# sway
2023-05-12 01:08:14 -05:00
2023-06-06 01:33:40 -05:00
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
2023-05-12 01:08:14 -05:00
2023-06-06 01:33:40 -05:00
echo "Using config $ev"
exec Hyprland -c "$ev"
else
exec "$(dirname "$0")/../sway/init"
fi