Comments (7)
I had the same issue where copying to clipboard, with autoclosing enabled, would not work. I fixed it by installing wl-clipboard
. I wonder how it could work without it in the first place.
from swappy.
@AsarNaufil did you try using "early_exit=true" option in the config file? See the information in the man page. Isn't that what you need?
from swappy.
Just for the heck of it, I'll share a script I made for screenshotting displays in sway. You'll probably have to modify it depending on how many displays you have. This script autocloses swappy after a given amount of time, depending on the positional parameter it's given at execution. I typically like to specify this number inside of the sway config, usually as 5 or 10.
#! /bin/bash
# Print screen of active workspace on the corresponding display
# Because we're sending this to swappy, let's add the convenience of when this screenshot was taken.
time=$(date +%D_%I:%M_%p)
# Ask swaymsg which display is "active"
# Also strip quotes.
display=$(swaymsg -rt get_workspaces | jq '.[] | select(.focused==true)' | jq .output | tr -d '"')
# Screenshot, also send to swappy. Swappy will "die" after a set amount of time, specified by the command argument.
grim -o $display - | wl-copy
grim -o $display - | timeout ${1}m swappy --name=GrimScreenshot_${time} -f -```
from swappy.
I'm not I understand the use case here. If it's just to copy content from the screen you don't need swappy at all.
from swappy.
I'm not I understand the use case here. If it's just to copy content from the screen you don't need swappy at all.
to copy screenshots taken?
from swappy.
But swappy is all about editing the screenshot taken. Swappy doesn't make screenshots itself (that's what we usually use grim for). It also doesn't do the region selection (that's what we usually use slurp for).
If you do not want to add text/arrows/circles etc to the screenshot you take, swappy is not needed in your workflow. If, on the other hand, you do want to add some annotations then killing it from the outside script after a fixed amount of time doesn't make much sense anyways. Adding annotations is inherently interactive process and as such you never know how long it will take.
If to want to copy the image to clipboard, there's a button for that in swappy's window. You can co figure if swappy will be closed as soon as you click it or not.
It seems to me like this script is trying to (ab)use swappy as a "screenshot previewer".
from swappy.
I see.. I'll close the issue then. Thanks.
from swappy.
Related Issues (20)
- Removing Top Bar | Resizing the Window
- [BUG] Failed to register: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gtk.Actions” on object at path /me/jtheoof/swappy HOT 1
- Ability to upload image to be shared HOT 7
- Add flag args
- No alpha HOT 1
- Crop HOT 2
- can not input CJK HOT 3
- Cut/Crop Image HOT 2
- [Enhancement] Allow painted elements to be moved using a Move tool HOT 1
- swappy is not actually trying to use xclip? HOT 4
- Submiting a Flatpak packages & about the app ID
- Swappy cannot read screenshots from Firefox from the clipboard HOT 3
- [FEATURE REQUEST] Auto-Copy to Clipboard HOT 4
- A new file is created each time Save command is performed HOT 3
- Link to AUR doesnt work HOT 1
- Line can be requested?
- swappy fails to start "Failed to register: Timeout was reached"
- unable to load file: /tmp/swappy-stdin-WCN1M2.png HOT 2
- Match the height of the editing area to the input image HOT 1
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 swappy.