-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Feature request - custom menu option(s) #135
Comments
Sounds like a reasonable request. Not sure on the best approach. Maybe a file if located in say .config/indicator-sysmonitor that has a predefined format like
Then the existing menu could be built on startup with the values in the file. |
Not sure if Script Runner will do the trick for you. Full disclosure: I'm the author. Although only initially supported on Ubuntu, I'm expanding the supported platforms to include Debian, Fedora, openSUSE and Manjaro (along with better support for Ubuntu derivations). Will eventually switch from a PPA/deb install to a PyPI/pip install (hopefully soon)... |
Ubuntu is fine. BTW, muru asked for you to confirm you are the author in the link you posted: https://askubuntu.com/questions/30334/what-application-indicators-are-available/786708#786708 Are there usage instructions for Script Runner in GitHub or some other place? |
~/.config/indicator-systemmonitor sounds like a great place. Users can create the directory themselves. Perhaps you might want to make a rule that the file extension name must end in ".menu". Just in case someday you want to support other file types like ".language" where users can rename words in the GUI. Or perhaps you will want ".uom" for Units of Measure, etc. etc. |
When you run the indicator, open the Preferences and there are sample scripts. You should be able to base your custom script on those. |
Unfortunately there is an error on the last (third) step:
I'm on Ubuntu 16.04 LTS Pro with Unity and Compiz. I develop in Python 2.7.12 and Python 3.5. It appears the package only works with Ubuntu 20.04 and 22.04? Eventually I'll upgrade to 24.04 or 26.04 when 16.04 ESM hits EOL. I found a tutorial and it was less than an hour to create an app-indicator from scratch: http://candidtim.github.io/appindicator/2014/09/13/ubuntu-appindicator-step-by-step.html |
As 16.04 is now end of life (standard support) I pulled the release for that version. As you mentioned, either install the 20.04 or 22.04 version (after upgrade) or wait until you install 24.04 (and I hopefully soon release to PyPI)...or write your own indicator which sounds like you've started...well done! |
I've been using a custom script to display output for many years and it works excellent.
Is it possible to add new feature where a custom menu option can be added to the existing menu?
Then in Preferences you would create "My new custom menu option" - Exec: "my bash script.sh"
The text was updated successfully, but these errors were encountered: