I just wrote a little rfkill frontend with gtk+. If you use an acer laptop you should load acer-wmi, make sure you have acpi_osi=Linux in your kernel boot.

The following will bind the rfkill key to XF86WLAN

setkeycodes e013 246

Here’s the obligatory screenshot:

If you don’t have an acer device you should launch the app as:

grfkill -w wlandevice -b bluetoothdevice

Use rfkill list to find out the right names.

The source is available github It’s based on Gary’s gtk experiments(the author of urfkilld)

Arch users can use the following:

sudo packer -S grfkill