nixos/home/.config/polybar/scripts/tray
Greg Leyda beaf5202ca flakes
2022-07-09 11:27:58 -04:00

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