Shihira / gnome-extension-quicktoggler

DEPRECATED: Switched to KDE, so goodbye friends. Toggling services, launching apps in one click.
https://extensions.gnome.org/extension/1077/quick-toggler/
40 stars 9 forks source link

encourage people to share their menu entries #12

Open dreamcat4 opened 5 years ago

dreamcat4 commented 5 years ago

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 commented 5 years ago

Here is my contribution anyway:

{
  "entries": [
    {
        "type": "submenu",
        "title": "Quick Toggler",
        "entries": [
            {
              "type": "launcher",
              "title": "Settings...",
              "command": "gnome-shell-extension-prefs quicktoggler@shihira.github.com"
            },
            {
              "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/quicktoggler@shihira.github.com/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"
    }
  ]
}
Shihira commented 5 years ago

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.