summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-09-30 10:01:59 +0200
committerjoe <rbo@gmx.us>2025-09-30 10:01:59 +0200
commitf14cac73496a00efe7901ff528569c7847f5aa4b (patch)
tree782f1248131140df9ffc83e2b15e13426c0a2d85 /.local/bin
parentup (diff)
downloaddotfiles-bsd-f14cac73496a00efe7901ff528569c7847f5aa4b.tar.gz
dotfiles-bsd-f14cac73496a00efe7901ff528569c7847f5aa4b.tar.bz2
dotfiles-bsd-f14cac73496a00efe7901ff528569c7847f5aa4b.tar.xz
dotfiles-bsd-f14cac73496a00efe7901ff528569c7847f5aa4b.tar.zst
dotfiles-bsd-f14cac73496a00efe7901ff528569c7847f5aa4b.zip
herbe
Diffstat (limited to '.local/bin')
-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;
}