naelstrof / maim

maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an improved scrot.
Other
2.13k stars 78 forks source link

Parser of maim for image names work incorrectly #268

Closed snoitallicso closed 1 year ago

snoitallicso commented 1 year ago

~ date +"%Y-%m-%d %H:%M:%S"

2022-11-02 06:23:49

~ maim Pictures/$(date +"%Y-%m-%d %H:%M:%S").png

2022-11-02 file

snoitallicso commented 1 year ago

I need to use _ symbol between date and time like:

maim Pictures/Screenshots/Maim_Screenshot_$(date +"%Y-%m-%d_%H:%M:%S").png

naelstrof commented 1 year ago

Maim actually has the bare minimum of parsing to read args, it uses cxxopts to parse. What shell are you using?

I'd recommend trying maim "Pictures/Screenshots/Maim_Screenshot_$(date +"%Y-%m-%d_%H:%M:%S").png" to make sure your shell isn't changing the arg.

foxpy commented 1 year ago

Closing as not related to maim.