summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/dwmbar/dwmb-layout10
-rwxr-xr-x.local/bin/layouttoggle28
-rwxr-xr-x.local/bin/upsite2
l---------.local/share/yadm/repo.git/hooks/post-checkout1
-rwxr-xr-x.local/share/yadm/repo.git/hooks/post-commit3
l---------.local/share/yadm/repo.git/hooks/post-pull1
6 files changed, 22 insertions, 23 deletions
diff --git a/.local/bin/dwmbar/dwmb-layout b/.local/bin/dwmbar/dwmb-layout
index e0cf446..26b62c5 100755
--- a/.local/bin/dwmbar/dwmb-layout
+++ b/.local/bin/dwmbar/dwmb-layout
@@ -1,11 +1,3 @@
#!/bin/sh
-# echo "  $(cat $HOME/.cache/layout) "
-echo " $(cat $HOME/.cache/layout) "
-case $BLOCK_BUTTON in
- 1) layouttoggle ;;
- 2) remaps && Capslock remaps reinitialized;;
- 3) notify-send -a " Keyboard" "Click this widget to toggle the keyboard layout between french and english.
-Middle click it to remap Capslock to super (and escape when tapped) if it somehow gets unmapped.";;
- 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
-esac
+echo "  $(cat $HOME/.cache/layout) "
diff --git a/.local/bin/layouttoggle b/.local/bin/layouttoggle
index 139ceb9..d1ceba5 100755
--- a/.local/bin/layouttoggle
+++ b/.local/bin/layouttoggle
@@ -1,18 +1,20 @@
#!/bin/sh
-layout=$(cat $HOME/.cache/layout)
+layout=$(cat "$HOME/.cache/layout")
case "$layout" in
- ca) setxkbmap -model pc104 -layout us -variant ,,
- echo us > $HOME/.cache/layout
- ;;
- us) setxkbmap -model pc104 -layout ca -variant ,,
- echo ca > $HOME/.cache/layout
- ;;
- *) setxkbmap -model pc104 -layout us -variant ,,
- echo us > $HOME/.cache/layout
- ;;
- esac
-
-kill -38 $(pidof dwmblocks)
+ca)
+ setxkbmap -model pc104 -layout us -variant ,,
+ echo us >"$HOME/.cache/layout"
+ ;;
+us)
+ setxkbmap -model pc104 -layout ca -variant ,,
+ echo ca >"$HOME/.cache/layout"
+ ;;
+*)
+ setxkbmap -model pc104 -layout us -variant ,,
+ echo us >"$HOME/.cache/layout"
+ ;;
+esac
+kill -38 "$(pidof dwmblocks)"
diff --git a/.local/bin/upsite b/.local/bin/upsite
index fa7649a..aad82be 100755
--- a/.local/bin/upsite
+++ b/.local/bin/upsite
@@ -4,6 +4,6 @@ sitename="chausse.xyz"
cd "$HOME/Workspace/$sitename"
-hugo
+hugo --gc=true --minify
rsync -auvz "$HOME/Workspace/$sitename/public/" "master@$sitename:/var/www/dev"
diff --git a/.local/share/yadm/repo.git/hooks/post-checkout b/.local/share/yadm/repo.git/hooks/post-checkout
new file mode 120000
index 0000000..ace4560
--- /dev/null
+++ b/.local/share/yadm/repo.git/hooks/post-checkout
@@ -0,0 +1 @@
+post-commit \ No newline at end of file
diff --git a/.local/share/yadm/repo.git/hooks/post-commit b/.local/share/yadm/repo.git/hooks/post-commit
new file mode 100755
index 0000000..56d9d54
--- /dev/null
+++ b/.local/share/yadm/repo.git/hooks/post-commit
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+kill -41 $(pidof dwmblocks)
diff --git a/.local/share/yadm/repo.git/hooks/post-pull b/.local/share/yadm/repo.git/hooks/post-pull
new file mode 120000
index 0000000..ace4560
--- /dev/null
+++ b/.local/share/yadm/repo.git/hooks/post-pull
@@ -0,0 +1 @@
+post-commit \ No newline at end of file