Skip to content

Instantly share code, notes, and snippets.

View carmanaught's full-sized avatar

Thomas Carmichael carmanaught

  • Australia
View GitHub Profile
@carmanaught
carmanaught / context.lua
Created July 17, 2017 10:11 — forked from avih/context.lua
flexible mpv context menu using Tcl/Tk, for Windows too!
--[[ *************************************************************
* Context menu for mpv using Tcl/Tk. Mostly proof of concept.
* Avi Halachmi (:avih) https://github.com/avih
*
* Features:
* - Simple construction: ["<some text>", "<mpv-command>"] is a complete menu item.
* - Possibly dynamic menu items and commands, disabled items, separators.
* - Possibly keeping the menu open after clicking an item (via re-launch).
* - Hacky pseudo sub menus. Really, this is an ugly hack.
* - Reasonably well behaved/integrated considering it's an external application.