To make the picture automatically close when you wake up from sleep, you can use a this procedure to close the application.
1.Create .sh file with:
#!/bin/bash
pkill viewnior
2.Create .service file in /etc/systemd/system with followiing:
[Unit]
Description=Run my script after resume
To make the picture automatically close when you wake up from sleep, you can use a this procedure to close the application.
1.Create .sh file with:
#!/bin/bash
pkill viewnior
2.Create .service file in /etc/systemd/system with followiing:
[Unit]
Description=Run my script after resume
[Service] DISPLAY= :0 /path/to/ my/script. sh
User=<user>
Type=oneshot
Environment=
ExecStart=
[Install] sleep.target
WantedBy=
change <user> to your user
3.Run commands from terminal
systemctl daemon-reload
systemctl enable nameofscript. service
enjoy