You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest that whenever loginwindow is the current window on macOS, the state be changed to AFK. loginwindow is what is shown when the computer is locked, which means the user is away from their computer. This can be observed with aw-watcher-window.
The text was updated successfully, but these errors were encountered:
A better way to do this would be to check the CGSSessionScreenIsLocked key of the session info dictionary. See this StackOverflow answer for more info: https://stackoverflow.com/a/11511419
This solution can also be easily packaged into a ~10 line C program, let me know if that would be useful.
amsam0
changed the title
[macOS] The state should be changed to AFK when loginwindow is the current window
[macOS] Set state to AFK when screen is locked or computer is asleep
Jan 28, 2024
I suggest that whenever loginwindow is the current window on macOS, the state be changed to AFK. loginwindow is what is shown when the computer is locked, which means the user is away from their computer. This can be observed with aw-watcher-window.
The text was updated successfully, but these errors were encountered: