Giter Site home page Giter Site logo

Comments (2)

dreamcat4 avatar dreamcat4 commented on July 4, 2024

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"
    }
  ]
}

from gnome-extension-quicktoggler.

Shihira avatar Shihira commented on July 4, 2024

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.

from gnome-extension-quicktoggler.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.