Test "$#" -eq 1 || print_error_and_exit 5 "is_number(): There has not been passed exactly one argument!" # check if exactly one argument has been passed ![]() It might be noteworthy, that I decided to write a script for it now. The reason probably is, that I haven't specified any shell to be run into, and so the following works: sh -c 'xdotool key -window $(xdotool search -limit 1 -all -pid $(pgrep Lightshot) -name Lightshot) "Print"' You can find the latest revision and usage instructions on its GitHub page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |