Skip to main content
Topic: Elogind suspend script (Read 996 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Elogind suspend script

Hello everyone, I'm having a bit of trouble getting Elogind suspend using betterlockscreen. I created a script following the instructions on the Artix wiki; however, elogind doesn't seem to make use of it.
The script it located in "/usr/lib/elogind/system-sleep/". I named it "10-betterlockscreen". I made sure to set the executable bit using "chmod +x".  Here's the test of the script bellow"

Code: [Select]
#!/bin/sh
case "${1-}" in
    'pre')   
          betterlockscreen --suspend dimblur &
          ;;
esac

I also created a symlink in /bin/usr from systemctl to loginctl. By default, betterlockscreen depends on systemd's systemctl command for suspension but I've found that this workaround works just find when I enter it into a terminal.
Do I have to edit /etc/elogind/logind.conf at all to use scripts for suspend? Everything is commented out in the logind.conf file so I figured that elogind was using some kind of default configuration and that it would be better just to ignore the logind.conf file.