You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you checked if an issue already exists for this feature request?
Nobody else has requested this feature before
What feature would you like added?
I think it would be useful if fold / unfold could be used as a trigger.
When I have my phone folded, I always have auto rotate off. But when unfolded, the screen is wider turned sideways. This means either having to press the manual rotate button every time I change orientation, or toggling auto rotate from quick settings every time I fold/unfold the device. So being able to automatically enable auto rotate when unfolding, and disable it when folding, would eliminate that annoyance which would be incredibly nice. I don't believe there's currently any way to automate actions based on fold state.
I'm not sure how the hardware communicates the fold state to the system, like if it would be considered a "key/button" press/switch toggle or whatever. But since the system is aware of the fold state somehow, it should be possible to read that value, right?
@jambl3r I'm not sure about this, on the spectrum of being a button vs generic automation, this could be classed as a button. It is trivial to implement, I already have the code to observe the fold state for constraints.
it wouldn't be recorded, we'd add a button in the discover screen, just like fingerprint gestures, assistant trigger etc. My argument against is that I don't see much obvious utility for this, but we shouldn't underestimate what people can do with Key Mapper lol.
Edit: fingerprint gestures are pretty much non existent in the last 5 years, so maybe we need a fun feature for the modern foldables
We will do this. Have one "Fold" trigger, that gives two options to trigger it on fold or unfold. Rename "On device buttons" header to "On-device triggers".
Activity
sds100 commentedon Nov 26, 2026
@jambl3r I'm not sure about this, on the spectrum of being a button vs generic automation, this could be classed as a button. It is trivial to implement, I already have the code to observe the fold state for constraints.
jambl3r commentedon Nov 26, 2026
Yeah I agree it's out of scope. Would be weird to record as a trigger too as your display obviously changes between recording the fold/unfold trigger.
sds100 commentedon Nov 26, 2026
it wouldn't be recorded, we'd add a button in the discover screen, just like fingerprint gestures, assistant trigger etc. My argument against is that I don't see much obvious utility for this, but we shouldn't underestimate what people can do with Key Mapper lol.
Edit: fingerprint gestures are pretty much non existent in the last 5 years, so maybe we need a fun feature for the modern foldables
sds100 commentedon Nov 29, 2026
We will do this. Have one "Fold" trigger, that gives two options to trigger it on fold or unfold. Rename "On device buttons" header to "On-device triggers".
[-]Possibly use fold / unfold as a trigger on foldable devices?[/-][+]Trigger for foldable hinge[/+]