My laptop comes with the option to toggle wireless with the Fn+F12 key, but unfortunately this key doesn't work. Now inspired by this question, I would like to write a script that can toggle the software state of the wireless, preferably without needing sudo.
This basic script will do the job: