rofi-connman is a graphical frontend for connman, lightweight network connection manager. It's an excellent choice for those who want to have a flexible menu-driven network configuration tool without hassle and unnecessary dependencies other network managers require.
rofi-connman was designed with speed in mind to be able to display over 10000 NordVPN profiles with no significant delay.
rofi-connman is in early development, so only basic functionality is supported so far:
- Connecting to secure Wi-Fi networks
- Connecting to unprotected Wi-Fi networks
- Connecting to hidden Wi-Fi networks
- Connecting to pre-defined VPN networks
- Switching service priority
- Custom commands for main menu, prompt and PIN prompt (so
rofican easily be replaced withdmenu) - Wi-Fi network info (name, signal strength, state, security level, autoconnect status, favorites)
- Bar status mode (for bars like polybar)
- Aims for full POSIX compliance
- Install dependencies: rofi,
connmanctl(provided by connman) andempty(provided by empty) git clone --depth=1 git@github.com:sourcemage/rofi-connman.gitcd rofi-connman./rofi-connman- (Optional) For easy access, add the script somewhere in your
$PATH.
- rofi-connman is available in AUR.
rofi-connman supports 3 env variables:
ROFI_COMMAND: main menu command, to assign more lightweight alternatives like dmenuROFI_PROMPT_COMMAND: general prompt command, for additional info input, like SSIDPIN_PROMPT_COMMAND: password prompt command, for password input; with some extra scripting even pinentry-dmenu can be used
If sexpect is installed, it'll be used instead of empty.
Additionally, use of mawk is encouraged if you have thousands of VPN profiles. Once installed, rofi-connman will automatically prefer it over other awk interpreters.
NOTE: In order to properly display the network icon, you will need to use an iconic font in your bar, e.g. Siji
[module/connman]
type = custom/script
exec = rofi-connman --status
interval = 2
click-left = rofi-connman > /dev/null &
click-right = rofi-connman --toggle &alt + c
rofi-connman