evandrojr / my-tray-menu

Tray menu that is quite easy to set up custom actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

my-tray-menu

Delivers an easy set up tray menu.

alt text

demo.webm

Dead simple configuration

Sample my-tray-meny.yaml:

Netflix: google-chrome https://netflix.com
Prime video: google-chrome https://www.primevideo.com/
Separator: Separator
Punch the clock: google-chrome https://xxxxxxx.xxxxxx.xxxxxx/
Separator: Separator
Turn off screen: /bin/sh /home/j/lab/my-tray-menu/scripts/turn-off-screen.sh
Toggle mic: /bin/sh /home/j/lab/my-tray-menu/scripts/toggle-microphone.sh
Toggle speakers: pactl set-sink-mute @DEFAULT_SINK@ toggle
Kill process: xkill
Separator: Separator
Shutdown: sudo shutdown -P now

Requirements

  • Go 1.9

Dependencies' set up

Follow instructions for specific OS dependencies at:

https://github.com/getlantern/systray

For Linux Ubuntu and Mint.

Building apps requires gcc as well as the gtk3 and libayatana-appindicator3 development headers to be installed. For Debian or Ubuntu, you may install these using:

sudo apt-get install gcc libgtk-3-dev libayatana-appindicator3-dev

Usage

go get https://github.com/evandrojr/my-tray-menu
my-tray-menu

Manual:

git clone git@github.com:evandrojr/my-tray-menu.git
cd my-tray-menu
go get
go build
./my-tray-menu

Known bug:

  1. Icon is not showing in Windows, Linux is ok, never tested in Mac;
  2. Does not accept spaces in the path like "Program files\chrome.exe";

🍻

References:

  1. https://stackoverflow.com/questions/73261794/unable-to-loop-through-golang-dynamic-channels
  2. https://github.com/Osuka42g/simple-clock-systray
  3. https://github.com/getlantern/systray

About

Tray menu that is quite easy to set up custom actions


Languages

Language:Go 81.4%Language:Shell 18.6%