From 2770bbac5f65c4f9a8c7b9b18fe29e52ae7396ca Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 10 Nov 2025 14:47:46 -0700 Subject: [PATCH] If the DWM helper functions are available, go ahead and source them for local usage. --- tasks/general/acct_mgmt/users.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index 2e09b85..c9d8dee 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -1018,6 +1018,16 @@ alias hugo-server-stage="hugo server --gc --noHTTPCache --disableFastRender" alias hugo-server-prod="hugo server --gc --minify" alias hugo-server="hugo-server-dev" + dwm_functions: | + if [[ -f "{{ global_bin }}/volume.function" ]]; then + source "{{ global_bin }}/volume.function" + fi + if [[ -f "{{ global_bin }}/battery.function" ]]; then + source "{{ global_bin }}/battery.function" + fi + if [[ -f "{{ global_bin }}/storage.function" ]]; then + source "{{ global_bin }}/storage.function" + fi - name: General | Account Management | Users | Files | Common Variable set_fact: @@ -1097,6 +1107,7 @@ {{ function_load_branch }} {{ alias_reload_bash }} {{ alias_hugo_server }} + {{ dwm_functions }} - name: General | Account Management | Users | Files | .bashrc blockinfile: