diff options
-rw-r--r-- | etc/config | 5 | ||||
-rw-r--r-- | setup.py | 11 | ||||
-rwxr-xr-x | xboomx/bin/xboomx | 2 | ||||
-rwxr-xr-x | xboomx/bin/xboomx_path.py | 22 |
4 files changed, 26 insertions, 14 deletions
@@ -1,3 +1,4 @@ { - "dmenu_params": "-i -nb black -nf orange -sb black -p \"#\"" -}
\ No newline at end of file + "dmenu_params": "-b -i -nb black -nf orange -sb black -p \"#\"", + "ignorelist": ["X"] +} @@ -1,9 +1,10 @@ +# -*- coding: utf-8 -*- from setuptools import setup setup( name='xboomx', - version='0.50', + version='0.60', packages=['xboomx'], scripts=['xboomx/bin/xboomx_path.py', 'xboomx/bin/xboomx_sort.py', @@ -11,12 +12,12 @@ setup( 'xboomx/bin/xboomx_urls.py', 'xboomx/bin/web_xboomx', 'xboomx/bin/xboomx'], - license='BSD', + license='GPLv2', long_description='wrapper for most common occurences in dmenu', install_requires=[], include_package_data=True, package_data={'shared': ["etc/config"]}, - author="Yuriy Netesov", - author_email="[email protected]", - url="https://bitbucket.org/dehun/xboomx/", + author="Victor Häggqvist", + author_email="[email protected]", + url="https://github.com/victorhaggqvist/xboomx", ) diff --git a/xboomx/bin/xboomx b/xboomx/bin/xboomx index 2b4d266..c8865dc 100755 --- a/xboomx/bin/xboomx +++ b/xboomx/bin/xboomx @@ -1,6 +1,4 @@ #!/usr/bin/python -import fileinput - import subprocess from xboomx.config import config import xboomx.db diff --git a/xboomx/bin/xboomx_path.py b/xboomx/bin/xboomx_path.py index 67a1cb1..56779b3 100755 --- a/xboomx/bin/xboomx_path.py +++ b/xboomx/bin/xboomx_path.py @@ -1,11 +1,23 @@ #!/usr/bin/python import os +from xboomx.config import config -pathes = os.environ['PATH'].split(':') +def main(): + pathes = os.environ['PATH'].split(':') + items = [] -for path in pathes: - if os.path.isdir(path): - for f in os.listdir(path): - print f + for path in pathes: + if os.path.isdir(path): + for f in os.listdir(path): + items.append(f) + + uniqeitems = list(set(items)) + + ignorelist = config.get("ignorelist",""); + for item in uniqeitems: + if item not in ignorelist: + print item + +main()
\ No newline at end of file |