From 79d6b6e09fc03d1b4699353a4a41856a977709ca Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 25 Jan 2024 00:34:19 -0500 Subject: Update yadm hooks to update dwmblocks --- .local/bin/dwmbar/dwmb-dotfiles | 2 +- .local/bin/texinit | 3 +-- .local/share/yadm/repo.git/hooks/post-checkout | 4 +++- .local/share/yadm/repo.git/hooks/post-commit | 3 --- .local/share/yadm/repo.git/hooks/post-merge | 1 + .local/share/yadm/repo.git/hooks/post-pull | 1 - 6 files changed, 6 insertions(+), 8 deletions(-) mode change 120000 => 100755 .local/share/yadm/repo.git/hooks/post-checkout delete mode 100755 .local/share/yadm/repo.git/hooks/post-commit create mode 120000 .local/share/yadm/repo.git/hooks/post-merge delete mode 120000 .local/share/yadm/repo.git/hooks/post-pull diff --git a/.local/bin/dwmbar/dwmb-dotfiles b/.local/bin/dwmbar/dwmb-dotfiles index 1138929..5d064c1 100755 --- a/.local/bin/dwmbar/dwmb-dotfiles +++ b/.local/bin/dwmbar/dwmb-dotfiles @@ -29,4 +29,4 @@ case "$status" in *D*) icon=" " ;; esac -printf " %s" "$icon" +printf "  %s " "$icon" diff --git a/.local/bin/texinit b/.local/bin/texinit index 8d5adf2..24a1431 100755 --- a/.local/bin/texinit +++ b/.local/bin/texinit @@ -1,8 +1,7 @@ #!/bin/sh case form in "$1"; - rnw) - cp $HOME/Dropbox/A/Scholar/All/Templates/LaTeX/cegep/main.rnw ;; + rnw) cp $HOME/Dropbox/A/Scholar/All/Templates/LaTeX/cegep/main.rnw ;; *) cp $HOME/Dropbox/A/Scholar/All/Templates/LaTeX/cegep/main.tex ;; esac diff --git a/.local/share/yadm/repo.git/hooks/post-checkout b/.local/share/yadm/repo.git/hooks/post-checkout deleted file mode 120000 index ace4560..0000000 --- a/.local/share/yadm/repo.git/hooks/post-checkout +++ /dev/null @@ -1 +0,0 @@ -post-commit \ No newline at end of file diff --git a/.local/share/yadm/repo.git/hooks/post-checkout b/.local/share/yadm/repo.git/hooks/post-checkout new file mode 100755 index 0000000..56d9d54 --- /dev/null +++ b/.local/share/yadm/repo.git/hooks/post-checkout @@ -0,0 +1,3 @@ +#!/bin/sh + +kill -41 $(pidof dwmblocks) diff --git a/.local/share/yadm/repo.git/hooks/post-commit b/.local/share/yadm/repo.git/hooks/post-commit deleted file mode 100755 index 56d9d54..0000000 --- a/.local/share/yadm/repo.git/hooks/post-commit +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -kill -41 $(pidof dwmblocks) diff --git a/.local/share/yadm/repo.git/hooks/post-merge b/.local/share/yadm/repo.git/hooks/post-merge new file mode 120000 index 0000000..46214b9 --- /dev/null +++ b/.local/share/yadm/repo.git/hooks/post-merge @@ -0,0 +1 @@ +/home/master/.local/share/yadm/repo.git/hooks/post-checkout \ No newline at end of file diff --git a/.local/share/yadm/repo.git/hooks/post-pull b/.local/share/yadm/repo.git/hooks/post-pull deleted file mode 120000 index ace4560..0000000 --- a/.local/share/yadm/repo.git/hooks/post-pull +++ /dev/null @@ -1 +0,0 @@ -post-commit \ No newline at end of file -- cgit v1.2.3