dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[BUG] - Screenshot DIR not changing when following WIKI

Open snzsnz opened this issue 10 months ago • 2 comments

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

snzsnz avatar Jan 05 '26 23:01 snzsnz

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

Esscraye avatar Jan 06 '26 23:01 Esscraye

Thanks for testing. You're right. I forgot to update the screenshot section in the docs. It's updated now.

mylinuxforwork avatar Jan 07 '26 09:01 mylinuxforwork