profile, add variable and function for using preferred notification executable.

This commit is contained in:
me
2026-08-20 09:39:23 -07:00
parent 36f8aa3649
commit 83104fac25
+7 -1
View File
@@ -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