I'm looking for a way to add items to the unity top panel in Ubuntu 16.04. E.g. there is the dropdown menu where you can the system settings or switch account. I would like to either place an item there or just place a new item in the panel.

The reason for that is, that the standard "suspend" which I got there is the pm-hibernate, but I would like to have a button for pm-suspend as it is much faster

  • Panel items are called "indicators". You can write app-indicators yourself, e.g. with a short Python script. There should be a few examples to be found on this site or with your preferred search engine.
    – Byte Commander
    Oct 25 '17 at 11:52
  • Thanks, seems to work - should I delete the question now?
    – Marcel H.
    Oct 25 '17 at 19:09
  • If you want, you are free to do so, but it would be much greater if you posted an answer detailing what you found out and how you solved your issue instead, so that the community may profit from it. Thank you.
    – Byte Commander
    Oct 25 '17 at 21:10
  • Thanks for the advice :) I'll try to do so within the next few days
    – Marcel H.
    Oct 25 '17 at 21:12

As Byte Commander already pointed to, the answer is quite easy, there are very simple explanations about creating indicators, as e.g. this one in Python, but there are many more e.g. in C, C# etc as you can read here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.