1

I use my laptop to watch movies (crazy, I know), sometimes in a browser (Firefox) and sometimes in Totem. Either way, while I'm watching, the screen dims and eventually locks, per my Brightness and Lock settings.

I want that to happen basically any time that I'm not watching a movie, but I'd like it to stop happening while I watch movies.

Any suggestions?

Can I write a script to disable the screen lock for an hour or so? Is there a tool that does this?

Amanda
  • 9,723

2 Answers2

0

Totem has a setting for that at least in 14.04 under
Edit->Preferences->Display. enter image description here

mikewhatever
  • 33,013
0

You can use the script below to assign keyboard shortcut to enable and disable. When you run it, it disables lock screen; if your run it again, it enables lock screen.

#!/bin/bash
status=`gsettings get org.gnome.desktop.screensaver lock-enabled`
if [ $status == 'true' ]
then 
    gsettings set org.gnome.desktop.screensaver lock-enabled false
    echo "Lock Screen Disabled!"
else 
    gsettings set org.gnome.desktop.screensaver lock-enabled true
    echo "Lock Screen Enabled!"
fi
anonymous2
  • 4,325
Bahram
  • 83