diff options
Diffstat (limited to '')
-rwxr-xr-x[-rw-r--r--] | home-manager/config/yambar/scripts/disk (renamed from home-manager/config/yambar/scripts/disk.sh) | 4 | ||||
-rwxr-xr-x[-rw-r--r--] | home-manager/config/yambar/scripts/grades-average (renamed from home-manager/config/yambar/scripts/grades-average.sh) | 6 | ||||
-rwxr-xr-x[-rw-r--r--] | home-manager/config/yambar/scripts/network (renamed from home-manager/config/yambar/scripts/network.sh) | 6 | ||||
-rwxr-xr-x[-rw-r--r--] | home-manager/config/yambar/scripts/sound-volume (renamed from home-manager/config/yambar/scripts/sound-volume.sh) | 2 |
4 files changed, 7 insertions, 11 deletions
diff --git a/home-manager/config/yambar/scripts/disk.sh b/home-manager/config/yambar/scripts/disk index a6e35241..dad41feb 100644..100755 --- a/home-manager/config/yambar/scripts/disk.sh +++ b/home-manager/config/yambar/scripts/disk @@ -4,7 +4,6 @@ # . ~/.local/lib/shell/lib . %SHELL_LIBRARY_PATH - # Main loop while true; do # vars @@ -21,6 +20,5 @@ while true; do sleep 1 done - - +if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi # vim: ft=sh diff --git a/home-manager/config/yambar/scripts/grades-average.sh b/home-manager/config/yambar/scripts/grades-average index 72e180bd..98e06858 100644..100755 --- a/home-manager/config/yambar/scripts/grades-average.sh +++ b/home-manager/config/yambar/scripts/grades-average @@ -1,9 +1,9 @@ -#!/usr/bin/env dash +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null +# . ~/.local/lib/shell/lib . %SHELL_LIBRARY_PATH - while true; do grade=$(grades list average | awk '{print $2}'); @@ -12,4 +12,6 @@ while true; do sleep 1; done + +if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi # vim: ft=sh diff --git a/home-manager/config/yambar/scripts/network.sh b/home-manager/config/yambar/scripts/network index 9d797e15..45c164df 100644..100755 --- a/home-manager/config/yambar/scripts/network.sh +++ b/home-manager/config/yambar/scripts/network @@ -1,11 +1,9 @@ #! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -#. ~/.local/lib/shell/lib +# . ~/.local/lib/shell/lib . %SHELL_LIBRARY_PATH -LIB_TEMP_DIR_FOR_SCRIPT=$(mktemp -d) - retest=120 retest_if_con_fails=10 backend=nmcli @@ -47,7 +45,5 @@ case "$backend" in ;; esac - - if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi # vim: ft=sh diff --git a/home-manager/config/yambar/scripts/sound-volume.sh b/home-manager/config/yambar/scripts/sound-volume index 8fc0107f..8a9cf0d2 100644..100755 --- a/home-manager/config/yambar/scripts/sound-volume.sh +++ b/home-manager/config/yambar/scripts/sound-volume @@ -18,5 +18,5 @@ while true; do sleep 1; done - +if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi # vim: ft=sh |