Merge pull request #400 from Crupsp/freebsd-support

changed epoll to poll, updated README for FreeBSD
This commit is contained in:
tobi-wan-kenobi 2019-06-23 16:49:59 +02:00 committed by GitHub
commit ff82604036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -38,6 +38,10 @@ Explicitly unsupported Python versions: 3.2 (missing unicode literals)
# Arch Linux # Arch Linux
$ sudo pacman -S awesome-terminal-fonts $ sudo pacman -S awesome-terminal-fonts
# FreeBSD
$ sudo pkg install font-awesome
$ sudo pkg install py36-tzlocal py36-pytz py36-netifaces py36-psutil py36-requests #for dependencies
# Other # Other
# see https://github.com/gabrielelana/awesome-terminal-fonts # see https://github.com/gabrielelana/awesome-terminal-fonts
``` ```

View file

@ -25,8 +25,8 @@ def is_terminated():
def read_input(inp): def read_input(inp):
"""Read i3bar input and execute callbacks""" """Read i3bar input and execute callbacks"""
epoll = select.epoll() epoll = select.poll()
epoll.register(sys.stdin.fileno(), select.EPOLLIN) epoll.register(sys.stdin.fileno())
log.debug("starting click event processing") log.debug("starting click event processing")
while inp.running: while inp.running:
if is_terminated(): if is_terminated():