Giter Site home page Giter Site logo

fmuellner / gnome-plugin.custom-menu-panel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andreabenini/gnome-plugin.custom-menu-panel

0.0 0.0 0.0 148 KB

Custom menu on Gnome Top Bar with your favorite program shortcuts.

License: GNU General Public License v3.0

Shell 2.01% JavaScript 97.77% CSS 0.22%

gnome-plugin.custom-menu-panel's Introduction

Gnome Custom Menu Panel

Custom menu on Gnome Top Bar with your favorite program shortcuts.

Screenshot Preview another Preview

Usage:

  • Edit .entries.json to match your needs
  • Copy .entries.json file to $HOME/

If you edit .entries.json while running gnome please ensure to reload Gnome Window Manager (Alt+F2, "r")
Tested with: Arch Linux, X11, Gnome v42.0.0.
Widgets manual below describe available options, in the examples directory you can see some tests you can pick for your setup


Widgets Manual

Here are common widgets and entities you can use with this plugin:

- Launcher

Create a new entry and put it in the menu

    {
      "type": "launcher",
      "title": "Item Name on Menu",
      "command": "/your/command/to/execute --with-parameters"
    },

- Separator

Place a menu separator (<hr>)

    {
      "type": "separator"
    },

- SubMenu

Create a submenu inside current menu, items inside the submenu are placed inside entries and they can be of any type (launcher, separator, submenu, ...)

    {
        "type": "submenu",
        "title": "Menu Name",
        "entries": [
            //... Place your entries here ...//
        ]
    },

- Toggler

Create a toggle item on menu, it has a detector and ON|OFF commands. Command detector can be activated|deactivated by a 0 (success) return error level and later detected with a plain JavaScript eval. See graphical result on above screenshots

    {
      "type": "toggler",
      "title":       "Widget Title",
      "command_on":  "/command/when/turned/on",
      "command_off": "/command/when/turned/off",
      "detector":    "/command/detector > /dev/null && echo yes"
    },

gnome-plugin.custom-menu-panel's People

Contributors

andreabenini 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.