home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.slackware      I think its the one without Selinux crap      87,272 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 86,978 of 87,272   
   John McCue to Marco Moock   
   Re: suspend xscreensaver auto-lock   
   28 Feb 25 23:45:59   
   
   From: jmccue@magnetar.jmcunx.com   
      
   Marco Moock  wrote:   
   > Hello!   
   >   
   > Is there a way to automatically lock the screen when the system goes   
   > into suspend when using xscreensaver?   
      
   Yes, see below.  This is a paired down script I use:   
      
   SCRIPT START-----------------------------------------------   
   #!/bin/bash   
   #   
   # This is File   
   #      /lib64/elogind/system-sleep/10_sleep.sh   
   # on 64 bit systems, 32 bit, maybe /lib/ ?   
   # do a chmod 755 on it   
   #   
   # Edit /etc/elogind/logind.conf  (slackware 15.0)   
   # You may need to add this:   
   #     HandleLidSwitch=suspend   
      
   g_user_01=YOUR-USER-ID   
      
   case $1/$2 in   
       pre/*)   
           logger "INFO ELOGIN: processing $1/$2 SLEEP"   
   	su $g_user_01 -c "(xscreensaver-command -lock)"   
   	# expirement with this setting   
   	sleep 2   
           ;;   
       post/*)   
           logger "INFO ELOGIN: $1/$2 RESUME"   
           ;;   
   esac   
   SCRIPT END  -----------------------------------------------   
      
   HTH   
      
   --   
   [t]csh(1) - "An elegant shell, for a more... civilized age."   
                           - Paraphrasing Star Wars   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca