Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More exit options #43

Open
Lazzu opened this issue Apr 7, 2023 · 3 comments
Open

More exit options #43

Lazzu opened this issue Apr 7, 2023 · 3 comments

Comments

@Lazzu
Copy link

Lazzu commented Apr 7, 2023

Thank you for this awesome piece of software!

I'm using unimatrix as my screensaver in my hyprland desktop. If someone is interested how, my config is the following:

exec-once = swayidle -w timeout 600 'foot unimatrix'
windowrule=fullscreen,^(foot)$

My first world problem is that I need to push the esc key or spacebar to exit. I'd like to have a bit more options for that:

  • Any key
  • Key(s) defined as an argument
  • Mouse events, including moving mouse if at all possible

Thank you if you even consider these! I'm happy with the software as-is anyway.

@will8211
Copy link
Owner

will8211 commented Apr 9, 2023

Hi @Lazzu,

I think it makes sense that we could have a “screensaver mode” where the process ends on any keypress or mouse movement.

I’m not sure how most screensavers are implemented… We might need to wait a second before checking the mouse, or set a minimum movement distance so that the user doesn’t accidentally end the process right as they’re starting it.

Should be pretty straightforward though. I’ve been wanting to make some improvements, this could be included. I’m away from home for Easter, but I’ll have a look at it when I get home.

@will8211
Copy link
Owner

will8211 commented Apr 26, 2023

I'm starting work on a new major version, so i opened a ticket here: MTRX-9 Add screensaver mode

@serpens-ignis
Copy link

A workaround I found for getting this behavior is running with the "ignore keyboard" (-i) flag, and having your idle manager kill unimatrix on resume.

This is what my hyperidle.conf looks like:

listener {
    timeout = 300
    on-timeout = kitty --start-as=fullscreen unimatrix -ai -c red
    on-resume = pkill -9 -f /sbin/unimatrix
}

With this, moving the mouse or pressing any key kills the process.

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

No branches or pull requests

3 participants