reloads polybar when screen resolution changes
Project description
polybar-reload
Signals polybar to reload when screen resolution has changed. Especially useful
when running in a vm, when screen resizes can occur often.
Currently supports one screen.
Installation
Enable interprocess communication for each bar you would like to reload:
Edit ~/.config/polybar/config:
[bar/myBar1]
enable-ipc = true
...
[bar/myBar2]
enable-ipc = true
Install polybar-reload via pip:
pip install --user polybar-reload
Run polybar-reload. This can be done in a number of places. If you don't use
any of the tools mentioned below, you can run polybar-reload in whatever script
you use to start polybar.
for i3 users:
Add the following to your ~/.config/i3/config
exec_always --no-startup-id ~/.local/bin/polybar-reload
This will load polybar on startup, but not on "reload i3" (commonly bound to Mod+Shift+r)
Upgrading
pip install --upgrade --user polybar-reload
If polybar-reload doesn't update to the newest version you can uninstall and reinstall.
Make sure to bypass local cache.
pip uninstall polybar-reload && pip install --user --no-cache-dir polybar-reload
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polybar-reload-0.1.7.tar.gz.
File metadata
- Download URL: polybar-reload-0.1.7.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0a21243c07b1b24ce781b828253dc5d450b219dc583e467a0434099a76165ea
|
|
| MD5 |
2220a0c42552a5776700d73d64eed8e6
|
|
| BLAKE2b-256 |
0e3a663023cb7385ed15f687a6947802f7220659df770ceaf1f8898f53b7e64b
|
File details
Details for the file polybar_reload-0.1.7-py3-none-any.whl.
File metadata
- Download URL: polybar_reload-0.1.7-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6b4a7b62689467ad7d64b0757a161266e1ba73a2e1b39c996594c5ee8117b53
|
|
| MD5 |
9d0d94386fab98c0ee080c4c52435948
|
|
| BLAKE2b-256 |
14f095596c83e06af404ab900121042163a9b3cf88aeec87903a27d4781960cc
|