I want Ctrl+Alt+L and being idle to trigger
dm-tool switch-to-greeter
(goes to login screen)
instead of lock screen I intend to replace every event where lockscreen would appear to show login screen(but still logged in)
how do I do it?
I want Ctrl+Alt+L and being idle to trigger
dm-tool switch-to-greeter
(goes to login screen)
instead of lock screen I intend to replace every event where lockscreen would appear to show login screen(but still logged in)
how do I do it?
dm-tool switch-to-greeter then press OK.
#!/bin/bash
# The target may depend on your system. i8042 is mouse and keyboard on mine.
log=/proc/interrupts
target=i8042
measure_activity()
{
count=$1
interrupts_start=`grep $target $log | awk '{ print $2 }'`
interrupts_stop=`sleep 1 && grep $target $log | awk '{ print $2 }'`
if [ "$interrupts_start" == "$interrupts_stop" ] ; then
((count++))
if [ $count -eq 120 ] ; then
dm-tool switch-to-greeter
measure_activity 0
else
measure_activity $count
fi
else
measure_activity
fi
}
measure_activity 0 &
Make it executable.
Add it to Application Autostart tab of Session and Startup.
P.S.: I've got the script from here and I edited it for you.
greeter after being idle for 2 minutes or so.
– Jani Kovacs
Jan 28 '14 at 16:35
/proc/interrupts, move the mouse then open it again. Compare the two logs. The last column is the input, you want to change instead of i8042. Figure out which row you need. It must have different values between the two logs in the first column to be the row, corresponding to mouse movements. It should be one of the "usb" ones.
– qxp
Jan 29 '14 at 20:58