Metadata-Version: 2.1
Name: polybar-reload
Version: 0.1.6
Summary: reloads polybar when screen resolution changes
Home-page: https://github.com/patrick-motard/polybar-reload
Author: Patrick Motard
Author-email: motard19@gmail.com
License: UNKNOWN
Download-URL: https://github.com/patrick-motard/polybar-reload/archive/0.1.6.tar.gz
Keywords: polybar,reload,resize,resolution
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Requires-Dist: Xlib

# 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`


