Commit Graph

36 Commits

Author SHA1 Message Date
Kristóf Tóth 0bdbff89ac Refactor config package 2021-10-25 18:28:36 +02:00
Kristóf Tóth 0ce211b46d Use the XLib DPMS extension from C wrappers instead of subprocess calls 2021-10-24 14:12:22 +02:00
Kristóf Tóth 00bacdec3e Improve XLib-XInput error handling 2021-10-24 14:09:00 +02:00
Kristóf Tóth 56b65b8449 Use Xlib code to find a keyboard instead of relying on user config 2021-10-22 15:15:52 +02:00
Kristóf Tóth 9ca48b7bf8 Further improve XLib code and include go code capable of calling it 2021-10-22 15:15:11 +02:00
Kristóf Tóth 0729d9a9ee Move includes to source file 2021-10-16 22:43:34 +02:00
Kristóf Tóth 86ed0f7989 Improve hacky XLib code 2021-10-16 22:39:47 +02:00
Kristóf Tóth bae3b95b6c Improve cleanup logic (handle singals gracefully) and use config magic 2021-10-16 22:39:47 +02:00
Kristóf Tóth 0177d349df Add poc to parse config from env. Should refactor (famous last words) 2021-10-16 22:39:47 +02:00
Kristóf Tóth 8ae7f2cf5b Add some hacky PoC XLib/XInput C code to fetch slave device nodes 2021-10-16 22:39:45 +02:00
Kristóf Tóth 771ddc8ce3 Fix forgotten errno return in evdev C code 2021-10-15 20:55:41 +02:00
Kristóf Tóth 98ed8d9a29 Remove logfile if it's empty before exiting 2020-09-09 23:51:53 +02:00
Kristóf Tóth 4689797c78 Move logging to separate file 2020-09-09 23:48:27 +02:00
Kristóf Tóth 37989135a7 Slightly increase loop delay 2020-09-08 16:34:19 +02:00
Kristóf Tóth b27bf63162 Rename package 2020-09-08 16:32:55 +02:00
Kristóf Tóth 9747cfe33b Explain keypress sleep debouncing in hybernateDisplayLoop 2020-09-08 16:14:34 +02:00
Kristóf Tóth fbcb69a855 Avoid not exiting on unlocked screen with constant keyboard activity 2020-09-08 15:45:50 +02:00
Kristóf Tóth 6cea681f6f Refactor error handling for cleaner code 2020-09-08 15:45:26 +02:00
Kristóf Tóth b652c48bd4 Simplify stop logic (closing a RO fd is not worth the added complexity) 2020-09-08 15:41:31 +02:00
Kristóf Tóth 93da02bf90 Setup proper logging 2020-09-08 15:27:52 +02:00
Kristóf Tóth f80f2be784 Group lockscreen and display suspension related code 2020-09-08 14:08:54 +02:00
Kristóf Tóth 48aaf76c8a Fix busy loop (sleep wouldn't be triggered when the display is off) 2020-08-21 10:35:05 +02:00
Kristóf Tóth 78c216486f Make granule of reuse the granule of release (avoid exporting 30 lines) 2020-08-20 17:07:05 +02:00
Kristóf Tóth ebbd1974df Invert display and lockscreen control dependencies 2020-08-20 16:57:57 +02:00
Kristóf Tóth e6458aba0b Ensure only a single instance of after-lock runs at a time 2020-08-20 15:57:17 +02:00
Kristóf Tóth 8b89bcb3f6 Refactor main and display hibernating logic from eachother 2020-08-18 16:28:35 +02:00
Kristóf Tóth 8bba5b30a4 Refactor screensaver package into display and lockscreen 2020-08-18 13:15:45 +02:00
Kristóf Tóth 97884bfb64 Refactor main 2020-08-18 12:30:55 +02:00
Kristóf Tóth 8222f24fa7 Expor AtomicFlag type 2020-08-18 12:30:39 +02:00
Kristóf Tóth 9fd5c8af53 Add README 2020-08-18 11:39:15 +02:00
Kristóf Tóth 2da93cd928 Add .gitignore 2020-08-18 11:07:40 +02:00
Kristóf Tóth 4db8abf204 Implement proof of concept core logic (requires refactor) 2020-08-18 11:06:59 +02:00
Kristóf Tóth d4e6a8d727 Implement simple, thread-safe atomic flag type 2020-08-18 11:06:36 +02:00
Kristóf Tóth 202b72879a Add package to control and monitor screensaver 2020-08-17 16:54:30 +02:00
Kristóf Tóth 5c6db0577f Implement a simple C module to wait for keypresses 2020-08-17 15:50:39 +02:00
Kristóf Tóth 916b3c2836 Initial commit. Add poc hack script 2020-08-17 12:28:52 +02:00