I'm sure like most of you, I've been really enjoying WinBoat as an alternative to WinApps or Cassowary. However, if you're limited on memory, battery life etc. it'd be a nice touch to have the docker container auto-shutdown after a certain period of inactivity.
So! I've written a very very basic bash script and service that can do this for you.
- Clone this repository either by clicking
Code -> Download as ZIPor by runninggit clone https://github.com/Kuritsu243/WinboatMonitorService.gitvia git CLI. - Open up a terminal of your preference and ensure the
setup.shfile is executable by runningchmod +x setup.sh - Run the setup via
sudo ./setup.sh. Follow the prompts in your Terminal and that should all be done!
If you want to make any modifications to the script post-install, then the file will be located under /usr/bin/.
PLEASE NOTE
- If you want to customise the install directory or have a non-conventional systemd location, you'll need to edit the
monitor_winboat.shfile beforehand. - This is a small hackjob pieced together by a sleep-deprived me tinkering around with Linux late at night. It may not work for everyone. This was tested on Arch w/ Linux 6.17 if that even matters.