#!/bin/sh if [ -z "$1" ]; then PERMS="555" elif [ "$1" = "--editable" ] || [ "$1" = "-e" ]; then PERMS="777" else echo "Usage: $0 [--editable|-e]"; exit 1; fi if [ -z "$HOME" ]; then echo "Script unusable by homeless users. ;-P"; echo "Set your \$HOME envar (or have your shell do it for you, like on every normal distro) and try again."; exit 1; fi DIR="$HOME/.config/hypr/scripts" if [ "$(realpath "$DIR/$(basename "$0")")" != "$(realpath "$0")" ]; then echo "This script must exist inside of $DIR"; exit 1; fi echo "Installing..."; ln -vrs "$DIR"/*.desktop "$HOME/.local/share/applications/" ln -vrs "$HOME/.config/hypr/hyprpanel" "$HOME/.config/" chmod --verbose $PERMS "$DIR"/*.sh xdg-mime default open_folder.desktop inode/directory echo "Done!"; exit 0;