A Budgie applet to toggle screen dimming temporarily.
It is typically good security practice to have strict lock settings to reduce the risk of an intruder physically gaining access to a system while the user is away. However, when the user present but does not need to interact with his or her current session, there should be a mechanism to toggle between guarded and unguarded states easily. This application fulfills that role.
Caffeine takes the form of a toggle button that is initially deactivated. It controls four settings:
idle-dim, which controls whether the screen dims when idle,
sleep-inactive-ac-type, which controls the sleep behavior during inactivity while on AC power,
sleep-inactive-battery-type, which is the counterpart for
sleep-inactive-ac-typeon battery power, and
idle-delay, which controls when to issue a blank screen.
- When the button is activated, the applet saves the current values of the above four settings, then overwrites them with:
0, which indicates the screen should never blank.
- When the button is then deactivated, the applet restores the settings saved on activation.