-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.h
More file actions
20 lines (15 loc) · 812 Bytes
/
Copy pathconfig.h
File metadata and controls
20 lines (15 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#define BRIGHTNESS_FILE "/sys/class/backlight/intel_backlight/brightness"
#define KBD_BRIGHTNESS_FILE "/sys/class/leds/chromeos::kbd_backlight/brightness"
#define AC_PRESENT_FILE "/sys/class/power_supply/AC/online"
#define IDLE_BRIGHTNESS 100 // max for me is 937 so this is roughly 10%
// timeouts for the various actions to take
#define TIMEOUT_1 30 * 1000 // dim after 30 secs
#define TIMEOUT_2 300 * 1000 // lock after 5 mins
#define TIMEOUT_3 600 * 1000 // hybrid-sleep after 10 min
#define ACTIVE 1
#define IDLE_1 10 // dim screen/turn off keyboad backlight
#define IDLE_2 20 // lock screen, trigger ACTION_2
#define IDLE_3 30 // hybrid-sleep, trigger ACTION_3
#define ACTION_2 "/home/raidzero/.config/i3/lockscreen"
// requires sudo execution w/o passwd in sudoers
#define ACTION_3 "sudo zzz"