[SOLVED] Tint2 cancel button

Im not real good at scripting and im trying to put together a cancel button for a second tint2 panel, it will be a logout panel.

I need to keep the default tint2rc running but i want to be able to kill/cancel the exit tint2rc - logout shutdown tint2 instance.

tint2 -c /home/s7/.config/tint2/exit.tint2rc

I know i can do it via pid, but the pids change every session.

Like kill -9 17911

Any help much appreciated.

Solved my own question lol. Much help from stackoverflow though.

kill -15 $(ps aux | grep 'tint2 -c' | awk '{print $2}')


Nicee , did it yourself, good job.

1 Like