Manage NetworkManager connections with dmenu, Rofi, Bemenu, Wofi or fuzzel instead of nm-applet
NOTE
PR #124 changes
rofi_highlight
tohighlight
inconfig.ini
.
Copy script somewhere into $PATH OR
dmenu_command
with the desired options, including things like -i
for case insensitivity.
See config.ini.example for examples.[dmenu_passphrase]
section of config.ini will set the normal foreground and
background colors to be the same to obscure the passphrase. The Suckless
password patch -P
option is supported if that patch is installed. Rofi,
Wofi and Bemenu will use their respective flags for passphrase entry.list_saved = True
under
[dmenu]
in config.ini. If set to False
, saved connections are still
accessible under a "Saved connections" sub-menu.For bluetooth control, there are two options:
If not, the user needs to have access to /dev/rfkill
. On some distros
(e.g. Archlinux), /dev/rfkill
belongs to a group such as rfkill
. In
this case, ensure $USER belongs to that group. For other distros (e.g.
Fedora), you can use udev to ensure /dev/rfkill
belongs to a group. For
example, create /etc/udev/rules.d/10-rfkill.rules
:
KERNEL=="rfkill", GROUP="wheel", MODE="0664"
and then ensure $USER belongs to the wheel
group.
Section | Key | Default | Notes |
---|---|---|---|
[dmenu] |
compact |
False |
|
dmenu_command |
dmenu |
Command can include arguments | |
list_saved |
False |
||
pinentry |
None | ||
active_chars |
== | Prefix of active connection | |
highlight |
False |
Only applicable to rofi / wofi | |
highlight_fg |
None | Only applicable to wofi | |
highlight_bg |
None | Only applicable to wofi | |
highlight_bold |
True |
Only applicable to wofi | |
wifi_chars |
None | String of 4 unicode characters | |
wifi_icons |
None | String of icon characters | |
format |
(depends on compact ) |
Python-style format string | |
[pinentry] |
description |
Get network password |
|
prompt |
Password: |
||
[dmenu_passphrase] |
obscure |
False |
|
obscure_color |
#222222 |
Only applicable to dmenu | |
[editor] |
gui_if_available |
True |
|
gui |
nm-connection-editor |
||
terminal |
xterm |
Can include terminal arguments | |
[nmdm] |
rescan_delay |
5 |
Adjust delay in re-opening nmdm following rescan |
networkmanager_dmenu [-h] <menu args>