Comments (7)
My take on this is that there's no really point to it when you can just append && notify-send
to a command.
from nougat.
You can append notify-send, but that still gets sent even if you cancel nougat with escape.
from nougat.
So ideally we should have the exit code set to what the screenshot backend returns, if applicable.
If you could test the backend that you're using with command && notify-send 'test'
then hit escape and tell me if it sent the notification, that'd be great. No big deal if you can't, I'll test it later today in that case.
If you use maim or scrot, then the command should be easy enough (maim
or scrot
). ImageMagick can be tested with import -window root
.
from nougat.
Running maim -s > test.png && notify-send "test"
and hitting ESC doesn't send a notification.
from nougat.
Just what I needed, thank you.
Now it's just down to whether nougat should simply return the same exit code, or if there should be a post-command variable.
Post-command variable clutters the configuration (more), and would make the code slightly more complex. The same exit code would mean that a user could execute any command if nougat succeeds in taking a screenshot, but means users would have to constantly type the same thing over and over again (in the case of notifications).
Could do both, too. Which I'll likely end up doing.
from nougat.
Should be good now, let me know.
from nougat.
Yep! Now I can do nougat && notify-send "Success"
and have it send notification when i make a screenshot, and no notification when I cancel with ESC!
Thanks!
from nougat.
Related Issues (9)
- Using the -t flag with the -s flag still outputs the file path. HOT 1
- Suggestion for -p flag. HOT 1
- Using -t flag doesn't copy screenshot to clipboard HOT 1
- Can't make screenshots go to a singular folder. HOT 1
- Nougat creates links when disabling linking policy
- Referencing Commands HOT 1
- maim options HOT 1
- 0x0 support
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 nougat.