rudimentary git_monitor

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-04-22 18:20:38 +02:00
parent e2b3e0ee9d
commit b1dc30869c
2 changed files with 6 additions and 6 deletions

View File

@@ -3,16 +3,16 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
waybar waybar
(pkgs.writeShellScriptBin "waybar_mode" '' (pkgs.writeShellScriptBin "git_monitor" ''
#!/bin/bash #!/bin/bash
# List of directories to check # List of directories to check
directories=( directories=(
"~/nix-dots" "$HOME/nix-dots"
"~/shared/HSMW/Praxis/BCAM/bolt-llmserver" "$HOME/shared/HSMW/Praxis/BCAM/bolt-llmserver"
"~/shared/HSMW/Praxis/BCAM/bcam-tools" "$HOME/shared/HSMW/Praxis/BCAM/bcam-tools"
) )
for dir in "${directories[@]}"; do for dir in "''${directories[@]}"; do
echo "Checking git status in $dir" echo "Checking git status in $dir"
# Check if the directory exists # Check if the directory exists
if [ -d "$dir" ]; then if [ -d "$dir" ]; then

View File

@@ -33,7 +33,7 @@
./home-modules/theme/gtk.nix ./home-modules/theme/gtk.nix
./home-modules/theme/qt.nix ./home-modules/theme/qt.nix
./home-modules/home-git-monitor.nix.nix ./home-modules/home-git-monitor.nix
./home-modules/python.nix ./home-modules/python.nix
]; ];
home.username = "nx2"; home.username = "nx2";