From 83104fac2568ab73e8fa1e7f17b74d0aab2e736d Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 20 Aug 2026 09:39:23 -0700 Subject: [PATCH] profile, add variable and function for using preferred notification executable. --- tasks/general/acct_mgmt/users.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index 5e7c4b9..9baed8c 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -141,6 +141,11 @@ if [[ -n "$XDG_SESSION_ID" ]]; then setxkbmap -layout us -variant altgr-intl fi + export_notify: | + export NOTIFY="`which fyi 2>/dev/null || which notify-send 2>/dev/null`" + function notify() { + $NOTIFY $@ + } - name: General | Account Management | Users | Files | RC Variables set_fact: @@ -1199,7 +1204,8 @@ {{ export_path_sbin }} {{ export_terminal }} {{ export_browser }} - {{ keyboard_settings}} + {{ keyboard_settings }} + {{ export_notify }} rc_common: | # Fixes "command not found" when using aliases within functions. shopt -s expand_aliases