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