Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Rofi Menu wrapper for hierarchical menu creation.

Project description


PyRofi wraps Rofi and helps you to build the hierarchical menus with neat navigation.


Just python3 -m pip install --update --user pyrofi (requires Python ^3.6).


#!/usr/bin/env python3

from pyrofi import run_menu

def hello_world(_):
    print('Hello World!')

def dice():
    import random
    return ['echo', random.choice('123456')]

    'Calculator': ['xcalc'],
    'Games': {
        'Rogue': ['rogue'],
        'Angband': ['angband']
    'Calendar': ['ncal', '2019'],
    'Hello World': hello_world,
    'Dice': dice,

More complex example you can see here and run it with python3 -m pyrofi.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyrofi, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size pyrofi-0.2.0-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pyrofi-0.2.0.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page