1
0
Fork 1
mirror of https://github.com/Zerodya/hyprfreeze.git synced 2024-09-19 15:33:20 +02:00

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')
}