Commit graph

37 commits

Author SHA1 Message Date
Ian Douglas Scott
7a20c88896 Lock session on screen blanking 2024-10-30 13:02:46 -07:00
Ian Douglas Scott
a45b68f0cf Load system_actions config, and refactor commmand spawning code 2024-10-30 12:50:59 -07:00
Ian Douglas Scott
cad6a0e82c Use zbus::connection::Builder 2024-10-30 12:28:20 -07:00
Ian Douglas Scott
f682e19f21 Update default settings 2024-10-30 09:30:42 -07:00
Ian Douglas Scott
b0b2ccd680 Also expose screensaver DBus protocol at path /ScreenSaver
`vlc`, at least, uses this.
2024-10-29 16:40:16 -07:00
Ian Douglas Scott
c7084c1fe4 debian: Fix description 2024-10-29 10:10:49 -07:00
Ian Douglas Scott
e8c91fccd6 Destroy idle notifications when inhibited
When inhibitor is removed, it will be restarted, and idle timer will
begin.
2024-10-28 19:03:22 -07:00
Ian Douglas Scott
fbc21ca2a3 Fixes for freedesktop_screensaver 2024-10-28 18:41:52 -07:00
Ian Douglas Scott
e8feb4342c Add comments 2024-10-28 18:40:07 -07:00
Ian Douglas Scott
90151799c5 Deduplicate output global handling 2024-10-28 18:32:50 -07:00
Ian Douglas Scott
a559e59ad4 Move WlPointer dispatch code 2024-10-28 18:24:21 -07:00
Ian Douglas Scott
7a3004bc0d Use Event for screensaver inhibit state 2024-10-28 18:12:24 -07:00
Ian Douglas Scott
97d88fa111 Move FadeBlackSurface to a file 2024-10-28 17:57:44 -07:00
Ian Douglas Scott
f1537b1a92 Ignore idle if inhibitor is active 2024-10-28 17:48:00 -07:00
Ian Douglas Scott
d6d811e1f8 Log screensaver inhibitors 2024-10-28 17:36:49 -07:00
Ian Douglas Scott
1cdce673df Remove screensaver inhibitors for disconnected clients 2024-10-28 17:01:52 -07:00
Ian Douglas Scott
bd5487331d Track caller of screensaver "Inhibit" 2024-10-28 16:40:47 -07:00
Ian Douglas Scott
a0ddfa80b7 WIP org.freedesktop.ScreenSaver 2024-10-28 10:22:22 -07:00
Ian Douglas Scott
163356f012 Use map 2024-10-25 15:39:05 -07:00
Ian Douglas Scott
9db7e52704 recreate_notification: Don't recreate if unchanged time 2024-10-25 15:35:49 -07:00
Ian Douglas Scott
31b42b3d21 Use an IdleNotification type 2024-10-25 15:29:47 -07:00
Ian Douglas Scott
b384ea9fa2 Add suspend timer 2024-10-25 11:33:11 -07:00
Ian Douglas Scott
9907afc859 Listen to OnBattery state from UPower 2024-10-22 19:34:28 -07:00
Ian Douglas Scott
77d16897dc Log error instead of ignoring 2024-10-22 13:52:33 -07:00
Ian Douglas Scott
90249780a5 Use Option for time, and set DPMS on start 2024-10-22 13:45:41 -07:00
Ian Douglas Scott
f2c83714c0 Monitor config as calloop source; use for screen_off_time
Still not sure best way to configure multiple idle times.
2024-10-17 18:51:29 -07:00
Ian Douglas Scott
6d15d0f3c9 Use calloop 2024-10-17 18:09:10 -07:00
Ian Douglas Scott
315bc8cd90 debian: Add missing file 2024-10-17 13:49:12 -07:00
Ian Douglas Scott
e35c8767d1 Add debian/ packaging 2024-10-17 12:30:59 -07:00
Ian Douglas Scott
0ca4ee69d3 Add a justfile 2024-10-16 21:30:22 -07:00
Ian Douglas Scott
d908204700 Store ExtIdleNotificationV1
Needed to destroy the idle notification and create new one with
different time.
2024-10-15 10:05:19 -07:00
Ian Douglas Scott
92a5219eb9 Add a cosmic-idle-config crate for settings 2024-10-15 09:46:03 -07:00
Ian Douglas Scott
f30c7c3172 Handle output hotplug 2024-10-10 17:43:15 -07:00
Ian Douglas Scott
86f0dee5cc Address warnings 2024-10-10 13:00:49 -07:00
Ian Douglas Scott
0482b3c5bb Remove commented shm code 2024-10-10 12:55:56 -07:00
Ian Douglas Scott
966930d342 Fix package name 2024-10-08 18:59:49 -07:00
Ian Douglas Scott
97ab302ae4 Commit initial cosmic-idle prototype I wrote earlier 2024-09-13 18:35:02 -07:00