Amethysts thread here got me thinking that it would be nice to have my laptop switch to Desktop2 and display a video (in browser, mpv or mplayer, whatever i happen to have running on desktop2) when i have been idle (no keyboard action) for a specific time - and then switch back to desktop 1 as soon as I click a button or move the mouse.
Any thoughts how this may be achieved?
I guess it is similar to how the system switches off screenblanking when keyboard action is detected.
I have been playing with how to switch desktops and am testing with this script:
Code: Select all
#! /bin/bash
while true
do
xdotool key alt+1
sleep 10
xdotool key alt+2
sleep 20
done
Thanks for any thoughts.
EDIT : Currently looking at the following (neither of which exists on my system unfortunately):
xprintidle https://oldforum.puppylinux.com/viewtop ... 44#p678444
xidle
and also looking at http://www.xfree86.org/current/Xss.3.html