1
0
Fork 1
mirror of https://github.com/Zerodya/hyprfreeze.git synced 2024-11-10 01:18:49 +01:00

Merge pull request #3 from IceDBorn/main

Add support for NixOS
This commit is contained in:
Nicola 2023-10-10 20:05:56 +02:00 committed by GitHub
commit e58c6411e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
PID=$(hyprctl activewindow | grep -i pid | awk -F "pid: " '{ print $2 }' | awk -F "," '{ print $1 }') PID=$(hyprctl activewindow | grep -i pid | awk -F "pid: " '{ print $2 }' | awk -F "," '{ print $1 }')
PIDS=$(pstree $PID -npl | grep -oP '(?<=\()[0-9]+(?=\))') PIDS=$(pstree $PID -npl | grep -oP '(?<=\()[0-9]+(?=\))')