Fixed typos
This commit is contained in:
parent
cfadd69475
commit
1977068817
@ -13,7 +13,7 @@ show_notification() {
|
|||||||
|
|
||||||
countdown() {
|
countdown() {
|
||||||
for sec in $(seq "$1" -1 1); do
|
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
|
sleep 1
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@ -26,18 +26,18 @@ take_screenshot() {
|
|||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
--now)
|
--now)
|
||||||
take_screenshot "Screensot saved and copied to clipboard";;
|
take_screenshot "Screenshot saved and copied to clipboard";;
|
||||||
--in10)
|
--in10)
|
||||||
countdown 10
|
countdown 10
|
||||||
take_screenshot "Scheduled capture taken after 10 seconds and copied to clipboard";;
|
take_screenshot "Scheduled capture taken and copied to clipboard";;
|
||||||
--sel)
|
--sel)
|
||||||
maim -u -s "$filename"
|
maim -u -s "$filename"
|
||||||
xclip -selection clipboard -t image/png -i "$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)
|
--active)
|
||||||
maim -u -i "$(xdotool getactivewindow)" "$filename"
|
maim -u -i "$(xdotool getactivewindow)" "$filename"
|
||||||
xclip -selection clipboard -t image/png -i "$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
|
esac
|
@ -41,7 +41,7 @@ case "$1" in
|
|||||||
--help|*)echo -e "Updates [options]
|
--help|*)echo -e "Updates [options]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--get-updates Get the numer of updates available.
|
--get-updates Get the number of updates available.
|
||||||
--print-updates Print the available package to updates.
|
--print-updates Print the available packages to update.
|
||||||
--update-system Update your system including AUR.\n"
|
--update-system Update all pacman and AUR packages.\n"
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user