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

Screen rotation hooks for custom commands #4

Closed
mnussbaum opened this issue Sep 13, 2019 · 1 comment · Fixed by #45
Closed

Screen rotation hooks for custom commands #4

mnussbaum opened this issue Sep 13, 2019 · 1 comment · Fixed by #45
Labels
enhancement New feature or request

Comments

@mnussbaum
Copy link
Contributor

mnussbaum commented Sep 13, 2019

Opening this issue to get feedback, how would you feel about adding a way to configure custom commands to run after a screen rotation event?

My use case is that I need to restart waybar after rotation for it to resize to fit the new output dimensions. I could write a custom script to watch the accelerometer status but it feels like it would be very duplicative of the logic already defined in this project.

I think my ideal would be to add an optional config file that would include a list of commands to execute after a rotation event is detected. What do you think?

@efernau
Copy link
Owner

efernau commented Sep 14, 2019

I also use waybar and have no problems with resize.
But I like your idea of optional config file and commands to executed after a rotation event.

Maybe before and after, then I can use that for realize smooth rotation animations between the states.

@efernau efernau added the enhancement New feature or request label May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants