Skip to content

Conversation

@innovatedev-john-pope
Copy link

Initial POC for blocking buttons from running when the system is locked. Uses dbus-python.

  • Add lock check when button is pressed
  • block button press unless button is enabled when system is locked
  • add check box to UI to configure buttons that should be allowed to run when locked
  • connect to lock/unlock signals and update text/button on the stream deck for buttons that cannot run when the system is locked

issue #46

@gianklug
Copy link

what's preventing this from being merged? 🤔

@StormyIceLeopard
Copy link

what's preventing this from being merged? thinking

I am wondering the same thing

page = api.get_page(deck_id)

run_when_locked = api.get_button_run_when_locked(deck_id, page, key)
is_system_locked = system_api.get_is_system_locked()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can avoid the dbus work and added button press latency if the key is allowed to run when the system is locked.

if not run_when_locked:
if system_api.get_is_system_locked():
print and return

@coolapso
Copy link

HI, seems the main project as reached a stale state as the project owner seems to have disappeared, and we are trying to keep it alive.

you are welcome to participate in the discussion here: #357 so we can actually decide a path forward and hopefully accept your contribution into it.

@coolapso
Copy link

@innovatedev-john-pope feel free to move this PR to: https://github.com/streamdeck-linux-gui/streamdeck-linux-gui

please be sure to read the new contribution guide specially in regard to git commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants