This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# afterdark.sh: Old-school screensaver functionality for GNOME/Wayland desktops | |
# This script will run arbitrary command after specified time period, if there is no inhibiting applications detected | |
# Started process will be terminated at the first sight of user activity | |
# You supposed to launch something like full-screen video or cmatrix :) | |
start_after=15 # minutes | |
cmd="mpv /home/test/Videos/after_dark.mp4 --fs --loop --no-osc" | |
lock_screen=false |