From f09babafa68685108e8e2073783ba234f14ae652 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 2 Feb 2021 11:38:44 +0100 Subject: Option to not notify on setwp --- .local/bin/setwp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.local/bin') diff --git a/.local/bin/setwp b/.local/bin/setwp index 084b738..32bcd78 100755 --- a/.local/bin/setwp +++ b/.local/bin/setwp @@ -49,6 +49,11 @@ sub set_wp '--bg-fill', WP_FILE ); + return; +} + +sub notify +{ system( 'notify-send', '-u', @@ -65,6 +70,9 @@ sub main { choose_and_copy(get_pool_files()); set_wp(); + if (@ARGV == 0 || $ARGV[0] ne "-nw") { + notify(); + } return; } -- cgit v1.2.3