Fixed typos

This commit is contained in:
edwark43
2023-12-19 14:05:13 +00:00
parent cfadd69475
commit 1977068817
2 changed files with 9 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ show_notification() {
countdown() {
for sec in $(seq "$1" -1 1); do
dunstify -t 1000 --replace=699 -i ~/.local/misc/share/assets/screenshot.svg "Taking shot in : $sec"
dunstify -t 1000 --replace=699 -i ~/.local/misc/share/assets/screenshot.svg "Taking screenshot in : $sec"
sleep 1
done
}
@@ -26,18 +26,18 @@ take_screenshot() {
case $1 in
--now)
take_screenshot "Screensot saved and copied to clipboard";;
take_screenshot "Screenshot saved and copied to clipboard";;
--in10)
countdown 10
take_screenshot "Scheduled capture taken after 10 seconds and copied to clipboard";;
take_screenshot "Scheduled capture taken and copied to clipboard";;
--sel)
maim -u -s "$filename"
xclip -selection clipboard -t image/png -i "$filename"
show_notification "$filename" "Screenshot of selected area saved and copied to clipboard";;
show_notification "$filename" "Screenshot of the selected area saved and copied to clipboard";;
--active)
maim -u -i "$(xdotool getactivewindow)" "$filename"
xclip -selection clipboard -t image/png -i "$filename"
show_notification "$filename" "Screenshot of active window saved and copied to clipboard";;
show_notification "$filename" "Screenshot of the active window saved and copied to clipboard";;
*)
take_screenshot "Screensot saved and copied to clipboard";;
take_screenshot "Screenshot saved and copied to clipboard";;
esac