Also update setup.sh to remove the option for non-root users.
# Features which are only available in (very) recent screen releases or in
# current Git are marked with "(GIT)" so they can be removed by the setup
# script on machines with older versions.
+#
+# (BATTERY) is only used on laptops, (ROOT) only if running as root.
+
+# Automatically lock the screen after 10 minutes of inactivity if running as
+# root.
+idle 600 lockscreen # (ROOT)
# Don't display startup message.
startup_message off
s/screen-256color/screen/' screenrc > screenrc.tmp
mv screenrc.tmp screenrc
fi
+# Some options are only necessary when running as root. They are marked as
+# "(ROOT)".
+if [ x`id -u` != x0 ]; then
+ echo screenrc: removing root options
+ grep -v '(ROOT)' screenrc > screenrc.tmp
+ mv screenrc.tmp screenrc
+fi
# I use some features of screen which are only in Git. Drop them on machines
# which have older versions. They are marked as "(GIT)".
if [ $hostname != asp ]; then