gnome-extension-quicktoggler icon indicating copy to clipboard operation
gnome-extension-quicktoggler copied to clipboard

encourage people to share their menu entries

Open dreamcat4 opened this issue 6 years ago • 2 comments

Hi there,

I think making a quick link from README.md --> create a new issue to share entries is a good idea. It will help provide people with more useful menu entries, generated by the community.

The url syntax (to pre-populate issue fields) is explained here:

https://eric.blog/2016/01/08/prefilling-github-issues/

Something like this:

https://github.com/Shihira/gnome-extension-quicktoggler/issues/new?labels[]=examples&title=New%20Example:%20&body=This%20is%20a%20user%20contributed%20example%20menu%20entry%20paste%20your%20code%20below

dreamcat4 avatar Aug 06 '18 20:08 dreamcat4

Here is my contribution anyway:

{
  "entries": [
    {
        "type": "submenu",
        "title": "Quick Toggler",
        "entries": [
            {
              "type": "launcher",
              "title": "Settings...",
              "command": "gnome-shell-extension-prefs [email protected]"
            },
            {
              "type": "launcher",
              "title": "Edit Entries...",
              "command": "subl ~/.entries.json"
            },
            {
              "type": "launcher",
              "title": "Add Entry...",
              "command": "addentry.sh"
            }
        ]
    },
    {
        "type": "separator"
    },
    {
        "type": "toggler",
        "title": "Screen Brightness - Dim DP-0",
        "command_on": "xrandr --output DP-0 --brightness .7",
        "command_off": "xrandr --output DP-0 --brightness 1"
    },
    {
        "type": "separator"
    },
    {
        "type": "tmux",
        "title": "Top process",
        "session": "top-process",
        "command": "while true; do gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas set org.gnome.shell.extensions.quicktoggler indicator-text \"$(ps -eo pcpu,comm --no-headers| sort -t. -nk1,2 -k4,4 -r |head -n 1)\"; sleep 2; done"
    }
  ]
}

dreamcat4 avatar Aug 06 '18 21:08 dreamcat4

Thank you for providing a nice idea. I have done something similar in https://github.com/Shihira/gnome-extension-quicktoggler/tree/master/examples, but clearly no one would like to do a PR in order only to post some examples. Making use of issues should be better. I will consider to add such a link to the README.

Shihira avatar Aug 08 '18 16:08 Shihira