feat(hypr): add hyprland config

This commit is contained in:
2026-04-24 20:44:28 -04:00
parent 3d6393ae4b
commit befb444f12
2 changed files with 53 additions and 4 deletions
Executable
+39
View File
@@ -0,0 +1,39 @@
#!/usr/bin/env sh
required_tools=(nvim realpath)
missing=()
for tool in "${required_tools[@]}"; do
if ! command -v "$tool" &> /dev/null; then
missing+=("$tool")
fi
done
if [ "${#missing[@]}" -ne 0 ]; then
echo "$0: error: missing required tools: ${missing[*]}" >&2
exit 1
fi
for arg in "$@"; do
if [ -d "$arg" ]; then
echo "$0: error: '$arg' is a directory" >&2
exit 1
fi
done
if [ ! -z "$NVIM" ]; then
# inside neovim
if [ "$#" -ne "0" ]; then
realpath --zero "$@" | xargs -0 -n1 nvim --server "$NVIM" --remote
fi
exit
fi
# outside neovim
if [ "$#" -eq "0" ]; then
nvim
exit
fi
nvim "$@"