dotfiles/lib64/elogind/system-sleep/lock.sh

11 lines
390 B
Bash
Raw Normal View History

#!/bin/bash
case $1/$2 in
pre/*)
# Put here any commands expected to be run when suspending or hibernating.
qdbus6 --system org.freedesktop.DisplayManager /org/freedesktop/DisplayManager/Seat0 org.freedesktop.DisplayManager.Seat.SwitchToGreeter
;;
post/*)
# Put here any commands expected to be run when resuming from suspension or thawing from hibernation.
;;
esac