diff options
author | joe <rbo@gmx.us> | 2025-10-01 22:33:48 +0200 |
---|---|---|
committer | joe <rbo@gmx.us> | 2025-10-01 22:33:48 +0200 |
commit | 8854fa0f8a831264ed815b3615038dec89c6f632 (patch) | |
tree | cb0eda5ade37b16adb72ee084e20fe284b2c90a1 /.local/bin/dmscrot | |
parent | up (diff) | |
download | dotfiles-bsd-8854fa0f8a831264ed815b3615038dec89c6f632.tar.gz dotfiles-bsd-8854fa0f8a831264ed815b3615038dec89c6f632.tar.bz2 dotfiles-bsd-8854fa0f8a831264ed815b3615038dec89c6f632.tar.xz dotfiles-bsd-8854fa0f8a831264ed815b3615038dec89c6f632.tar.zst dotfiles-bsd-8854fa0f8a831264ed815b3615038dec89c6f632.zip |
up
Diffstat (limited to '.local/bin/dmscrot')
-rwxr-xr-x | .local/bin/dmscrot | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/.local/bin/dmscrot b/.local/bin/dmscrot index 6560d79..2746cd7 100755 --- a/.local/bin/dmscrot +++ b/.local/bin/dmscrot @@ -3,6 +3,7 @@ use strict; use warnings; use File::HomeDir qw(home); + use constant { SAVE_PATH => 'pics/scrot/', SCREENSHOT_PATH => 'scrot', @@ -33,12 +34,16 @@ sub show_img sub notify_img { my ($file) = @_; + my $pid; - system( - NOTIFY_PATH, - ' screenshot captured to ' . "\n" . - $file + $pid = fork(); + if (not $pid) { + system( + NOTIFY_PATH, + ' screenshot captured to ' . "\n" . + $file ); + } return; } |