Git Product home page Git Product logo

menu's Introduction

menu

Well, this got a little bit out of control.

A cross-platform user menu, that turned into a popup launcher and more.

There are currently three programs available: a system tray menu, a popup menu, and a popup launcher.

Features

UMH has picked up a lot of different abilities. It can scan your network for other machines and services, publish services of its own, launch applications, open files to edit, open urls and run shell commands.

Tray menu

The tray menu sits in the system tray(Windows) or the menu bar (Mac). It displays the user-defined menu, as well as several auto-generated menus, like the Applications menu, and the network services menu.

Popup Menu

Similar to the tray menu, but the menu appears in the center of the screen.

Popup launcher

The popup launcher works similar to the built-in search on macosx. Press a button (F12), and the launcher will appear. Type your search, then use the up and down arrows to select your choice.

The options that appear in the popup launcher are not all automatically generated, they come from a file (~/.menu.recall.text). You can always find this file by searching for "Edit Recall Menu", then selecting that option from the list.

The different ways to launch a file or program are described below.

Use

Run tray_menu.exe. This starts the tray menu, and from there you can start the popup launcher from the user menu.

For command line scripting, there is a command line program that does the same as the hotkey: universal_menu_command_line_toggle.exe. This works with AppleScript and other scripting platforms. I use it with the program "My TouchBar, My Rules" to add a touchbar button that will open and close the launcher.

There is also a program called universal_menu_hotkey_monitor this program watches for the hotkey, then runs a program that you give it as the first argument on the command line.

Build

Use the provided build scripts, build.bat and build.sh

Command format

UMH uses urls where ever possible, and adds its own extensions. These URLs can be used in the UMH system menu, and in the ~/.menu.recall.text file.

  • http://,https:// - Will open a web browser to this url
  • shell:// - will run a shell command exactly as written. The shell will be cmd.exe or bash.
  • exec:// - attempt to run this program. You can add simple arguments after the program name, as if you were in the shell (but in a really dumb shell)
  • file:// - Open the file for display or editing using the default program
  • internal:// - There are several internal commands provided, e.g. RunAtStartup
  • clipboard:// - Copy the rest of this text to the clipboard(minus the clipboard:// part). You probably shouldn't put your passwords here, but I do anyway

You can also substitute in a few variables using the Go template syntax e.g. {{.AppDir}} will be replaced with the program directory.

AppDir      The directory containing the UMH program file
ConfigDir   The config and data directory, usually "~/.umh"
Cwd         The current operations directory, as stored in "~/.umh/cwd"
Command     The command that is currently being run

~/.menu.recall.text

The recall file holds your custom commands. You can always find this file to edit by typing "Edit Recall Menu" into the Launcher, and then selecting the option that appears.

The file format looks like this

Some text that you can search for | url://something that should happen

e.g.

menu's People

Contributors

donomii avatar

Stargazers

 avatar  avatar  avatar

Watchers

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