rot8 icon indicating copy to clipboard operation
rot8 copied to clipboard

Screen rotation hooks for custom commands

Open mnussbaum opened this issue 5 years ago • 1 comments

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?

mnussbaum avatar Sep 13 '19 21:09 mnussbaum

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 avatar Sep 14 '19 03:09 efernau