Skip to content

alvsz/eww-tray

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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

icons jgmenu showing a polychromatic menu

Dependencies

  • python3-gi
  • jgmenu

Configuration

  • In host.py, adapt render() to use your icons and colors

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

Module

(deflisten tray "./scripts/host.py")

(defwidget tray []
      (box :orientation "h" :space-evenly true
            (for entry in tray
                  (button :onclick {entry.menu_cmd + " &"}
                          :onrightclick {entry.cmd + " &"}
                          (image :image-height 20
                                 :path {entry.IconPath})))))

About

Freedesktop's StatusNotifierHost for eww

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 74.5%
  • Lua 25.5%