#!/bin/bash # Install Python dependencies pip3 install -r requirements.txt # Copy the systemd service file sudo cp src/screenmonitor.service /etc/systemd/system/ # Reload systemd to recognize the new service sudo systemctl daemon-reload # Enable the service to start on boot sudo systemctl enable screenmonitor # Start the service sudo systemctl start screenmonitor echo "Service installed and started successfully."