Code Monkey home page Code Monkey logo

Comments (14)

djinnalexio avatar djinnalexio commented on July 24, 2024

@roizcorp We can turn the message into a button to run a script or launch an app. Is that what you mean?

from gnome-shell-simple-message.

roizcorp avatar roizcorp commented on July 24, 2024

Thx, a button reacts only to one event of which it was pressed, what i am saying is to be aware of which event was acted on it as said above leftClick, leftDoubleClick etc.

from gnome-shell-simple-message.

djinnalexio avatar djinnalexio commented on July 24, 2024

Do you want it to run a script for each type of click or just tell you which action happened?

from gnome-shell-simple-message.

roizcorp avatar roizcorp commented on July 24, 2024

pointing to a .sh script will be super! if we are really creative we can have a return value to go back the string even

from gnome-shell-simple-message.

djinnalexio avatar djinnalexio commented on July 24, 2024

If I were to implement it, I would add an option to select a custom script that will run when the extension is clicked.

If the user wants to update the message with that script, they can include the dconf or gsettings command in the script themselves.

I believe it gives more flexibility and keeps things simple.

from gnome-shell-simple-message.

roizcorp avatar roizcorp commented on July 24, 2024

Makes sense, but I would consider other events as suggested about along with click

from gnome-shell-simple-message.

djinnalexio avatar djinnalexio commented on July 24, 2024

Add a different script to each event then.

from gnome-shell-simple-message.

roizcorp avatar roizcorp commented on July 24, 2024

exactly! many thanks!

from gnome-shell-simple-message.

djinnalexio avatar djinnalexio commented on July 24, 2024

@freddez Do you have any thoughts on that?

from gnome-shell-simple-message.

roizcorp avatar roizcorp commented on July 24, 2024

I replied already, but this is exactly what I was suggesting, all the events above, each will run a different script. Scripts may be selected by a dedicated UI OR better yet, is a setting in dconf (will make the extension resilient to gnome upgrades)

from gnome-shell-simple-message.

freddez avatar freddez commented on July 24, 2024

OK, I'll try to release a version without dedicated UI before the end of the year. But I'm not sure if there is a simple way to track other events than simple click.

from gnome-shell-simple-message.

freddez avatar freddez commented on July 24, 2024

Hi, I've just published a new release which adds the capability to launch a custom command on click. Tell me if it suits you. I could add other events, but the list is limited, and I doubt it could be very useful :

  • button-press-event: triggered when the button is pressed (the one I've used)
  • button-release-event: triggered when the button is released
  • enter-event: triggered when the pointer enters the button
  • leave-event: triggered when the pointer leaves the button
  • focus-in-event: triggered when the button gains focus
  • focus-out-event: triggered when the button loses focus

from gnome-shell-simple-message.

roizcorp avatar roizcorp commented on July 24, 2024

Thanks, I will give it a try
So except the click event, you did not implement none of my other suggested events?

from gnome-shell-simple-message.

freddez avatar freddez commented on July 24, 2024

from gnome-shell-simple-message.

Related Issues (4)

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.