SolDoesTech / HyprV4

497 stars 142 forks source link

grim | swappy #35

Closed sleonf closed 1 year ago

sleonf commented 1 year ago

hi, i'm trying to take a screenshot using the bind = $mainMod, S, exec, grim -g "$(slurp)" - | swappy -f - # take a screenshot but I would like to save the file in $XDG_SCREENSHOTS_DIR/$(%Y%m%d_%H%M%S.png), $XDG_SCREENSHOTS_DIR = $HOME/Pictures/Screenshots on XDG Specifications, could you give me some advice on how to fix this? i couldn't find the swappy config file in .config/HyprV or .config swappy-20230723_170659

sleonf commented 1 year ago

By Now the only workaround i've done is adding mv command to the folder Pictures/Screenshots bind = $mainMod, S, exec, grim -g "$(slurp)" - | swappy -f - && mv $HOME/swappy-* $HOME/Pictures/Screenshots/ # take a screenshot in ~/.config/hypr/hyprland.conf

sleonf commented 1 year ago

folder and configuration file ~/.config/swappy/config were missing, I created and followed the example in the documentation and now it works even without the workaround. I don't know why the swappy folder and the configuration file weren't present, in the link you can find the details Swappy