about summary refs log tree commit diff stats
path: root/home-manager
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home-manager/config/yambar/default.nix6
-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
5 files changed, 10 insertions, 14 deletions
diff --git a/home-manager/config/yambar/default.nix b/home-manager/config/yambar/default.nix
index 4600dcfb..db77600e 100644
--- a/home-manager/config/yambar/default.nix
+++ b/home-manager/config/yambar/default.nix
@@ -25,20 +25,20 @@ in {
 
     volume_script = makeScript {
       dependencies = builtins.attrValues {inherit (pkgs) pulseaudio gawk;};
-      file = ./scripts/sound-volume.sh;
+      file = ./scripts/sound-volume;
     };
     grade_average_script = makeScript {
       dependencies = [
         grades.outputs.packages.${system}.default
       ];
-      file = ./scripts/grades-average.sh;
+      file = ./scripts/grades-average;
     };
     cpu_script = yambar_cpu.app.${system}.default.program;
     memory_script = yambar_memory.app.${system}.default.program;
 
     disk_script = makeScript {
       dependencies = builtins.attrValues {inherit (pkgs) gawk btrfs-progs coreutils;};
-      file = ./scripts/disk.sh;
+      file = ./scripts/disk;
     };
   };
 }
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