#!/bin/bash notify() { notify-send "Screenshot saved" "images/screenshots/$(date +%F_%H-%M)" } case "$1" in "full") flameshot full -p "$HOME/images/screenshots" && notify ;; "select") flameshot gui -p "$HOME/images/screenshots" && notify ;; *) notify-send "Error" "Couldn't save screenshot" ;; esac