1 2 3 4 5
#!/bin/sh PIC="$HOME/pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png" maim --format=png --hidecursor --quality 8 --select "$PIC"
Consider giving Nix/NixOS a try! <3