aboutsummaryrefslogtreecommitdiff
path: root/zshrc.d
diff options
context:
space:
mode:
Diffstat (limited to 'zshrc.d')
-rw-r--r--zshrc.d/bell6
1 files changed, 4 insertions, 2 deletions
diff --git a/zshrc.d/bell b/zshrc.d/bell
index 5fbb5c4..e785dbf 100644
--- a/zshrc.d/bell
+++ b/zshrc.d/bell
@@ -33,5 +33,7 @@ lrbell_end() {
fi
}
-add-zsh-hook preexec lrbell_begin
-add-zsh-hook precmd lrbell_end
+if command -v xprop >/dev/null && command -v notify-send >/dev/null; then
+ add-zsh-hook preexec lrbell_begin
+ add-zsh-hook precmd lrbell_end
+fi