swappy icon indicating copy to clipboard operation
swappy copied to clipboard

Ask where to save files.

Open migonos0 opened this issue 3 years ago • 4 comments

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.

migonos0 avatar Jan 01 '22 23:01 migonos0

zenity can be used to solve the problem indirectly

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

with9 avatar Feb 24 '22 17:02 with9

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.

CallumDowling avatar Feb 22 '23 05:02 CallumDowling

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.

Maaxxs avatar Aug 03 '23 11:08 Maaxxs

+1

mobsenpai avatar Apr 29 '24 14:04 mobsenpai