Add support for NixOS

This commit is contained in:
IceDBorn 2023-10-10 20:51:07 +03:00
parent 1833892648
commit 58987ea42f

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 }')
PIDS=$(pstree $PID -npl | grep -oP '(?<=\()[0-9]+(?=\))')