Comments (14)
@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.
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.
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.
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.
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.
Makes sense, but I would consider other events as suggested about along with click
from gnome-shell-simple-message.
Add a different script to each event then.
from gnome-shell-simple-message.
exactly! many thanks!
from gnome-shell-simple-message.
@freddez Do you have any thoughts on that?
from gnome-shell-simple-message.
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.
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.
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.
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.
from gnome-shell-simple-message.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnome-shell-simple-message.