rot8
rot8 copied to clipboard
Screen rotation hooks for custom commands
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?
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.