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
+6
View File
@@ -141,6 +141,11 @@
if [[ -n "$XDG_SESSION_ID" ]]; then if [[ -n "$XDG_SESSION_ID" ]]; then
setxkbmap -layout us -variant altgr-intl setxkbmap -layout us -variant altgr-intl
fi 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 - name: General | Account Management | Users | Files | RC Variables
set_fact: set_fact:
@@ -1200,6 +1205,7 @@
{{ export_terminal }} {{ export_terminal }}
{{ export_browser }} {{ export_browser }}
{{ keyboard_settings }} {{ keyboard_settings }}
{{ export_notify }}
rc_common: | rc_common: |
# Fixes "command not found" when using aliases within functions. # Fixes "command not found" when using aliases within functions.
shopt -s expand_aliases shopt -s expand_aliases