lu0 / current-x-display-info

Get information from the current display on Linux-X11: pip3 install xdisplayinfo
https://pypi.org/project/xdisplayinfo/
GNU General Public License v3.0
1 stars 0 forks source link

Make this a package GitHub can recognize as Dependency #1

Closed lu0 closed 2 years ago

lu0 commented 2 years ago

Right now I'm using this repository as a submodule in lu0/rofi-blurry-powermenu@v1.0.0 and on window-control scripts of lu0/dotfiles_linuxMint@b3b6555, which means this repository is a dependency on both of those projects.

I want to be able to make dependencies among my projects visible on GitHub, but GitHub does not recognize submodules as such (👎), so all these dependencies I have across projects are hidden and there's no way to know if this repo is being used in another even as a submodule pointing to the stable branch. However, this can be achieved using package managers GitHub recognizes.

pip is one of such, so I'm thinking about either packaging the single script I have in this repo using pip (which would be kinda odd for a Python package to not have a Python file but only a single Bash script), or migrating the entire functionality to Python and then packaging it (and I also think I can make it cross-platform by using Python with something like tkinter).

If I do so, maybe I should leave this repo as it is to showcase the functionality with Bash (in systems using X server), and maybe archive it or leave a small note in the Readme file pointing to the proposed repository, which must be package-recognizable by GitHub, and why not, cross-platform.

Then I should open an issue in rofi-blurry-powermenu and dotfiles_linuxMint so that I don't forget to migrate those from using display_info.sh to, maybe, this proposed pip package displayinfo.

lu0 commented 2 years ago

Initial repo: https://github.com/lu0/pydisplayinfo

lu0 commented 2 years ago

Closed by tag/v1.0.2, I created a wrapper PIP package for this repo (Linux w/X11). Cross-platform will be its own, when/if I have time.