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
Hashes for polybar_reload-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70b319ba5158f81ac59019e7ad5b12af573dc08422fc620d9a40aa36f4ea45c1 |
|
MD5 | 7050b80028fc5156b15bbd360f69d9c2 |
|
BLAKE2b-256 | 20cb60b13a8b836cb852ac53a356abf4975c9ae23c4653e9edac1ed71639533e |