summaryrefslogtreecommitdiffstats
path: root/.local/bin/setwp
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/setwp')
-rwxr-xr-x.local/bin/setwp32
1 files changed, 2 insertions, 30 deletions
diff --git a/.local/bin/setwp b/.local/bin/setwp
index 85041ec..02241bd 100755
--- a/.local/bin/setwp
+++ b/.local/bin/setwp
@@ -72,34 +72,6 @@ sub set_wp
return 0;
}
-sub notify
-{
- system(
- 'notify-send',
- '-u',
- 'low',
- '-t',
- '2000',
- 'setwp',
- ' wp set'
- );
- return;
-}
-
-sub notify_error
-{
- system(
- 'notify-send',
- '-u',
- 'critical',
- '-t',
- '4000',
- 'setwp',
- ' Wallpaper does not exist or is not a valid file'
- );
- return;
-}
-
sub main
{
my $wp;
@@ -117,8 +89,8 @@ sub main
$ret = set_wp($wp);
}
if (@ARGV == 0 || (@ARGV != 0 && $ARGV[0] ne "-nw")) {
- notify() if ($ret == 0);
- notify_error() if ($ret != 0);
+ exec('herbe', ' wp set') if ($ret == 0);
+ exec('herbe', ' wp is not a valid file') if ($ret != 0);
}
return;
}