Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask where to save files. #125

Open
migonos0 opened this issue Jan 1, 2022 · 4 comments
Open

Ask where to save files. #125

migonos0 opened this issue Jan 1, 2022 · 4 comments

Comments

@migonos0
Copy link

migonos0 commented Jan 1, 2022

Type: Enhancement.

Loving the utility so far. Apologies if the feature exists already but I was not able to find any clue of how to activate it nor anything that refers to it.

Description: It would be great to have a save dialog once the Save button is pressed.

Motivation: Sometimes we need to store screenshots in different directories.

@with9
Copy link

with9 commented Feb 24, 2022

zenity can be used to solve the problem indirectly

#!/usr/bin/fish
grim -g (slurp) - |swappy -f - -o (zenity --file-selection --confirm-overwrite --save)

@CallumDowling
Copy link

zenity can be used to solve the problem indirectly

#!/usr/bin/fish
grim -g (slurp) - |swappy -f - -o (zenity --file-selection --confirm-overwrite --save)

Maybe if you want to always be asked ...

Wouldn't control + s = save according to pattern, control + shift + s = save with dialog box be a good solution?

I too am loving it so far, thanks very much.

@Maaxxs
Copy link

Maaxxs commented Aug 3, 2023

Wouldn't control + s = save according to pattern, control + shift + s = save with dialog box be a good solution?

yes. This is also the solution proposed in #133 along with a "save as" button next to the "Save" button.

If you want to try it out/use it:

git clone -b feat/save_as_image https://github.com/Maaxxs/swappy.git 
cd swappy
meson setup build
ninja -C build

Then you can either run it from the build directory with

./build/swappy --version 
# or 
./build/swappy -f /path/to/image

or install it system wide with

sudo ninja -C build install

If you have problems or notice anything weird, let me know.
I am using this custom build for about a year now without problems.

@mobsenpai
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants