[BUG] - Screenshot DIR not changing when following WIKI
Describe the bug
https://mylinuxforwork.github.io/dotfiles/usage/screenshots#change-the-screenshot-directory
When I enter a DIR path in here it still saves the screenshot to pictures
Steps to reproduce
bind = SUPER_SHIFT, code:201, exec, grimblast --notify copysave area
Am using this keybind but it is saving them to pictures and not a screenshot folder I have set up
Expected behavior
Saving them to specified folder in .sh path
Screenshots
No response
Distribution
Arch Linux
If Other, specify
No response
Additional context
No response
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
You can modify here ~/.config/ml4w/settings/screenshot-folder but to be used you have to change your command to use the ml4w script, exactly like in the keybindings :
bind = $mainMod, PRINT, exec, $HYPRSCRIPTS/screenshot.sh # Take a screenshot
bind = $mainMod ALT, F, exec, $HYPRSCRIPTS/screenshot.sh --instant # Take an instant full-screen screenshot
bind = $mainMod ALT, S, exec, $HYPRSCRIPTS/screenshot.sh --instant-area # Take an instant area screenshot
pour ton cas exact, il faudrait que tu modifie le fichier ~/.config/hypr/scripts/screenshot.sh avec ça :
take_copysave_area() {
grimblast --notify copysave area "$NAME"
[[ -f "$HOME/$NAME" && -d "$screenshot_folder" && -w "$screenshot_folder" ]] && mv "$HOME/$NAME" "$screenshot_folder/"
}
# Handle instant flags
if [[ "$1" == "--instant" ]]; then
take_instant_full
exit 0
elif [[ "$1" == "--instant-area" ]]; then
take_instant_area
exit 0
elif [[ "$1" == "--copysave-area" ]]; then
take_copysave_area
exit 0
fi
et que tu te fasse ton keybinding comme ça :
bind = SUPER_SHIFT, code:201, exec, $HYPRSCRIPTS/screenshot.sh --copysave-area
Thanks for testing. You're right. I forgot to update the screenshot section in the docs. It's updated now.