shell
#!/usr/bin/env bash
dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver',member='ActiveChanged'" | while read line ; do
if [ x"$(echo "$line" | grep 'boolean true')" != x ] ; then
xdg-open file:///home/hank/projects/local/index.html
fi
done
xdg-open file:///home/hank/projects/local/index.html
/etc/profile.d/
開機login自動背景執行。
./unlock.sh &