jakfish
February 22nd, 2019, 10:17 PM
Hello, All,
Running Mate 18.3 on a 7" GPD Pocket 1, I'm trying to remove the text of Chromium's window title bar. I've gotten pretty far, but I'm stuck on executing a pkill command upon closing Chromium:
#!/bin/bash
if [[ $(pgrep chromium-browse) ]]
then
mate-terminal --command /home/jake/Scripts_Icons/chro_watch3 ##chro_watch3 is script running only one command: watch --exec bash -c 'wmctrl -r Chromium -T " "'##
else
sudo pkill -INT watch
fi
exit 0
Successful tests:
a) script starts watch command if chromium-browse is running in processes
b) script will not start watch command if chromium-browse is not running in processes
The rub is that the script ends once chromium and watch command are started, and I need it to keep running so that when I close chromium, a pkill -INT watch command will be sent.
I've looked hard, but I haven't figured out how to do this, and I'd be appreciative of any help.
Jake
Running Mate 18.3 on a 7" GPD Pocket 1, I'm trying to remove the text of Chromium's window title bar. I've gotten pretty far, but I'm stuck on executing a pkill command upon closing Chromium:
#!/bin/bash
if [[ $(pgrep chromium-browse) ]]
then
mate-terminal --command /home/jake/Scripts_Icons/chro_watch3 ##chro_watch3 is script running only one command: watch --exec bash -c 'wmctrl -r Chromium -T " "'##
else
sudo pkill -INT watch
fi
exit 0
Successful tests:
a) script starts watch command if chromium-browse is running in processes
b) script will not start watch command if chromium-browse is not running in processes
The rub is that the script ends once chromium and watch command are started, and I need it to keep running so that when I close chromium, a pkill -INT watch command will be sent.
I've looked hard, but I haven't figured out how to do this, and I'd be appreciative of any help.
Jake