mirror of
https://github.com/Zerodya/hyprfreeze.git
synced 2024-11-09 17:08:49 +01:00
feat: desktop-aware -r
This commit is contained in:
parent
dc6636de41
commit
d2656ce853
1 changed files with 9 additions and 4 deletions
|
@ -99,12 +99,17 @@ function getPidByName() {
|
|||
|
||||
function getPidByProp() {
|
||||
debugPrint "Getting PID by prop..."
|
||||
if [[ "hyprland" == "$DESKTOP" ]]; then
|
||||
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')
|
||||
else
|
||||
echo "Selecting the target window by mouse is currently not supported on $DESKTOP."
|
||||
exit 1
|
||||
fi
|
||||
debugPrint "PID by prop: $PID"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue