mirror of
https://github.com/Zerodya/hyprfreeze.git
synced 2024-11-09 17:08:49 +01:00
Check if hyprprop is installed
This commit is contained in:
parent
b8f52b737b
commit
21f77dbe1f
1 changed files with 5 additions and 0 deletions
|
@ -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')
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue