summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2021-02-02 11:38:44 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2021-02-02 11:38:44 +0100
commitf09babafa68685108e8e2073783ba234f14ae652 (patch)
treeb7f147f1198bc79346c73ec4c1114b45c5cbbc6e /.local/bin
parentRemoved alacritty, updated Emacs and GNU Screen (diff)
downloaddotfiles-bsd-f09babafa68685108e8e2073783ba234f14ae652.tar.gz
dotfiles-bsd-f09babafa68685108e8e2073783ba234f14ae652.tar.bz2
dotfiles-bsd-f09babafa68685108e8e2073783ba234f14ae652.tar.xz
dotfiles-bsd-f09babafa68685108e8e2073783ba234f14ae652.tar.zst
dotfiles-bsd-f09babafa68685108e8e2073783ba234f14ae652.zip
Option to not notify on setwp
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/setwp8
1 files changed, 8 insertions, 0 deletions
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;
}