Im using ubuntu with cinnamon and im tired of not having a bluetooth switch, and having to use rfkill to turn BT off. For now, i use blueman to turn BT on and manage devices and connections, and I use rfkill on my terminal to turn it back off after im done using it. I wanted to create a clickable macro (ie : as a cinnamon applet that would display on my taskbar) that rfkills on and off BT.
My question is : is there a command of rfkill that lets you simply invert a device's state (that is unblock if blocked and blocked if unblocked) ?