Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove the dependency on polybar from bspwm #21

Open
amtoine opened this issue Oct 14, 2022 · 1 comment
Open

remove the dependency on polybar from bspwm #21

amtoine opened this issue Oct 14, 2022 · 1 comment
Labels
needs-triage An issue or PR without label

Comments

@amtoine
Copy link
Owner

amtoine commented Oct 14, 2022

hello there 👋 😋

i have noticed, and that was intentional at the time, that some part of the config use polybar to get the list of connected monitors
i think this is not great because it adds a useless dependency to them...

these files are:

  • ~/.config/bspwm/bspwmrc
  • ~/.config/qtile/popups.py

now

bspwm

monitors=($(polybar -m | awk -F: '{ print $1 }' | tr '\n' ' '))

qtile

output = subprocess.check_output(["polybar", "-m"]).decode("utf-8")
monitors = [monitor.split(":")[0] for monitor in output.strip().split("\n")]

new ideas

bspwm

we should be able to use something like

bspc wm -d | jq .monitors.{{SOMETHING}}

qtile

we should be able to use qtile shell but, as i'm not on qtile these days, i did not try this idea 🤔

@amtoine

This comment was marked as off-topic.

@amtoine amtoine added the needs-triage An issue or PR without label label Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage An issue or PR without label
Projects
None yet
Development

No branches or pull requests

1 participant