This is a program that helps with quick small annotations in screenshots made with maim or something similar. Everything is in progress currently.
You can open a file by passing it as the first argument:
pinsel path/to/file.png or by piping into the program. That's why
pinsel file.png and
cat file.png | pinsel behave the same. If there is both an argument and an image being piped into the program, piping will be prefered.
You can pre-define the destination of a saved file with the
-o flag. The save shortcuts will then just save the image to the destination saving you from the tiring file dialog (especially in day-to-day usage).
An example usage for screenshot taking may look like the following:
maim -s | pinsel -o $HOME/$(date).png | xclip -selection clipboard -t image/png
First you select your screenshot through maim like you are used to. The result gets piped into pinsel where you can do annoatations and where you are free to save the image to
~/$(date).png or not. If you don't want to annotate your image then you can still decide on whether to save it or not (which may add one key press in total to that workflow in the "worst case"). The end result gets piped to your clipboard for further usage.
--outputpredefines the save-destination
--formatdefines the image format of the stdout output
--ontopputs the window above all others on startup
--maximizemaximizes the window on startup
Open the shortcut dialog to look them up
git clone https://github.com/Nooo37/pinsel.git cd pinsel sudo make install # will put the binary in /usr/local/bin
- allow for all font faces
--helptext, man page
- allow for other formats than png
- make text actually draggable when the dialog is open
- add a titlebar to the text dialog
my first C project - don't be harsh