xi / polybar-status-indicators

Freedesktop's StatusNotifierHost for polybar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An implementation of the freedesktop StatusNotifierItem specification (the successor of appindicators and systray) for polybar.

This allows you to use many existing status indicators, e.g. for NetworkManager or Steam. Menus are supported via rofi.

icons rofi showing a NetworkManager menu

Dependencies

  • python3-gi
  • rofi (or a similar dmenu-like tool)

Configuration

  • In host.py, adapt render() to use your icons and colors
  • In menu.py, adapt DMENU_CMD to your preferred dmenu-like tool

Apart from that, feel free to change whatever you like. This repo is meant as an example, not a turn-key solution.

Module

[module/indicators]
type = custom/script
exec = python3 ~/polybar-status-indicators/host.py 2> /dev/null
tail = true

About

Freedesktop's StatusNotifierHost for polybar

License:MIT License


Languages

Language:Python 100.0%