The Fairphone (Gen. 6) comes with a physical switch on the side which, by default, will trigger Fairphone Moments. Fairphone Moments is a brand new minimalist experience to use your Fairphone with fewer distractions. This gives you the freedom to disconnect when you want and stay fully present in real life or customize moments fitted to your own experiences, such as focus and travel modes.
What do you use that yellow switch for?
Just the flashlight for now.
source
Welcome back iPhone 5
you can set the function in the settings if you keep the stock os. things like flashlight, work profile and such.
on /e/os it is hard set to turning on and off camera & microphone access. at least i haven’t found a way to rebind it