Coder Social home page Coder Social logo

ollama-tray's Introduction

Tray App ๐Ÿ–ฅ๏ธ

Table of Contents

This is a simple desktop app that runs in the system tray.

Features ๐Ÿš€

  • Shows an icon in the system tray
  • Provides a context menu with options when clicked:
    • Run ollama list command
    • Quit app
  • Shows output of ollama list command in a pop-up message box
  • Shows error message if ollama list fails

Usage ๐Ÿ’ป

To run the app:

python tray_app.py

This will launch the app which will show up in the system tray.

To quit the app, right click on the tray icon and click "Quit".

Building ๐Ÿ› ๏ธ

The app can be packaged into a standalone executable using PyInstaller:

pyinstaller tray_app.spec

This will generate a dist/tray_app executable that can be run on any system with the same OS and architecture.

The PyInstaller spec file includes the app icon in the assets folder.

Systemd Service ๐Ÿšฆ

To create a systemd service to run the tray app at startup:

  1. Create a service file e.g. /etc/systemd/system/tray_app.service
  2. Add the following:
    [Unit]
    Description=Tray App
    
    [Service]  
    ExecStart=/path/to/tray_app
    WorkingDirectory=/path/to/tray_app/folder
    
    [Install]
    WantedBy=multi-user.target
    
  3. Run sudo systemctl enable tray_app to enable the service
  4. Start it with sudo systemctl start tray_app

Now the tray app will run automatically on system startup.

Icon ๐Ÿ–ผ๏ธ

The ollama icon is used from IconArchive under CC BY 3.0 license.

ollama-tray's People

Contributors

malyshevhen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.