Check if hyprprop is installed

This commit is contained in:
Nicola 2024-02-10 19:23:05 +01:00 committed by GitHub
parent b8f52b737b
commit 21f77dbe1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,6 +67,11 @@ function getPidByName() {
}
function getPidByProp() {
if ! command -v hyprprop; then
echo "You need to install 'hyprprop' to use this feature. (https://github.com/vilari-mickopf/hyprprop)"
exit 1
fi
PID=$(hyprprop | jq '.pid')
}