Skip to content

Commit

Permalink
Pass dmenu arguments to script on command line
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo97 authored and firecat53 committed Jun 15, 2017
1 parent eeb8e69 commit c0afc3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ Usage
-----

- Run script or bind to keystroke combination
- If desired, dmenu or Rofi options can be passed on the command line instead of
or in addition to the config file. These will override options in the config
file.

.. _PolicyKit permissions: https://wiki.archlinux.org/index.php/NetworkManager#Set_up_PolicyKit_permissions
.. _AUR Package: https://aur.archlinux.org/packages/networkmanager-dmenu-git/
Expand Down
1 change: 1 addition & 0 deletions networkmanager_dmenu
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def dmenu_cmd(num_lines, prompt="Networks", active_lines=None): # pylint: disab
res.extend(dmenu_args)
res += list(itertools.chain.from_iterable(extras))
res[1:1] = lines.split()
res.extend(sys.argv[1:])
return res


Expand Down

0 comments on commit c0afc3e

Please sign in to comment.