nixos/home-manager/config/polybar/scripts/tray

6 lines
139 B
Bash
Executable file

#!/usr/bin/env bash
u=$(xprop -name "Polybar tray window" _NET_WM_PID | awk '{print $3}')
if [ $u -Z ]
then polybar tray &
else kill $u
fi