mirror of
https://github.com/Zerodya/hyprfreeze.git
synced 2024-11-10 01:18: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
13
hyprfreeze
13
hyprfreeze
|
@ -99,12 +99,17 @@ function getPidByName() {
|
|||
|
||||
function getPidByProp() {
|
||||
debugPrint "Getting PID by prop..."
|
||||
if ! command -v hyprprop; then
|
||||
echo "You need to install 'hyprprop' to use this feature. (https://github.com/vilari-mickopf/hyprprop)"
|
||||
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
|
||||
|
||||
PID=$(hyprprop | jq '.pid')
|
||||
debugPrint "PID by prop: $PID"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue