summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-01-25 00:34:19 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-01-25 00:34:19 -0500
commit79d6b6e09fc03d1b4699353a4a41856a977709ca (patch)
treeeb4cf3eef1a26e6551e7046febeeae30531833ce
parentadcb6518d48ab41b26aeba77b3d0147d24dc287d (diff)
Update yadm hooks to update dwmblocks
-rwxr-xr-x.local/bin/dwmbar/dwmb-dotfiles2
-rwxr-xr-x.local/bin/texinit3
-rwxr-xr-x[l---------].local/share/yadm/repo.git/hooks/post-checkout4
-rwxr-xr-x.local/share/yadm/repo.git/hooks/post-commit3
l---------.local/share/yadm/repo.git/hooks/post-merge1
l---------.local/share/yadm/repo.git/hooks/post-pull1
6 files changed, 6 insertions, 8 deletions
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
index ace4560..56d9d54 120000..100755
--- a/.local/share/yadm/repo.git/hooks/post-checkout
+++ b/.local/share/yadm/repo.git/hooks/post-checkout
@@ -1 +1,3 @@
-post-commit \ No newline at end of file
+#!/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