我正在使用 Linux Mint,并且我在系统启动时运行以下服务自动截图, 但是如果计算机空闲,我需要它停止截图,并在它处于活动状态时再次运行(例如,鼠标是移动)。如何做到这一点?
while true; do scrot -d 70 '%Y-%m-%d-%H:%M:%S.jpg' -e 'mv $f ~/TMP/TempScreenShots' done
scripting screenshot linux-mint services
linux-mint ×1
screenshot ×1
scripting ×1
services ×1