From 21f77dbe1f94266634ab5096959aa5dfbeec83a1 Mon Sep 17 00:00:00 2001 From: Nicola <73220426+Zerodya@users.noreply.github.com> Date: Sat, 10 Feb 2024 19:23:05 +0100 Subject: [PATCH] Check if hyprprop is installed --- hyprfreeze | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hyprfreeze b/hyprfreeze index 637228a..dd55725 100644 --- a/hyprfreeze +++ b/hyprfreeze @@ -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') }