I shared my setup to enable the on-screen keyboard using wvkbd, and the auto-screen rotation using iio-sensor-proxy (monitor-sensor command) on Sway on the following thread. Though it is not Hyprland, maybe it is useful for someone who will try to set up these settings on Hyprland. I am only using the button-clicking trigger for now.