From 5221c654490496d05a89e9294222a4c0795e7f27 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Wed, 22 Feb 2023 12:38:41 +0100 Subject: [PATCH] Added new Obsidian vault --- .config/i3/config_common | 1 + .init_config.sh | 2 +- README.md | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/i3/config_common b/.config/i3/config_common index ae1057e..f43d6f1 100644 --- a/.config/i3/config_common +++ b/.config/i3/config_common @@ -229,6 +229,7 @@ bindsym $mod+Shift+s [class="Signal"] scratchpad show, move position center bindsym $mod+Shift+t [class="Telegram"] scratchpad show, move position center bindsym Mod4+ampersand [title="(?i)perso.*obsidian"] scratchpad show, move container to workspace 4, workspace 4, floating disable bindsym Mod4+eacute [title="(?i)tech.*obsidian"] scratchpad show, move container to workspace 4, workspace 4, floating disable +bindsym Mod4+quotedbl [title="(?i)notes.*obsidian"] scratchpad show, move container to workspace 4, workspace 4, floating disable # automatic workspace assign [class="(?i)Obsidian"] → number 4 diff --git a/.init_config.sh b/.init_config.sh index 9590d37..a5f0261 100755 --- a/.init_config.sh +++ b/.init_config.sh @@ -133,7 +133,7 @@ done if [ ! -z "${WM_RESTART}" ]; then echo -e "\n=== Restart graphical environment ===" # Reload i3 configuration - i3-msg reload + i3-msg restart # Restart picom due to this bug https://github.com/yshui/picom/issues/166 killall picom; picom &>/dev/null & diff --git a/README.md b/README.md index 4eaa06f..8199948 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ You can now reboot. ### Install Git Hook -You want to add files named `post-merge` **and** `pre-push` in `~/.cfg/hooks` with contains : +You want to add files named `post-merge` **and** `post-commit` in `~/.cfg/hooks` with contains : ```sh #!/bin/sh @@ -134,7 +134,7 @@ You want to add files named `post-merge` **and** `pre-push` in `~/.cfg/hooks` wi exec env WM_RESTART=1 ~/.init_config.sh ``` -And then `chmod +x ~/.cfg/hooks/{post-merge,pre-push}`. +And then `chmod +x ~/.cfg/hooks/{post-merge,post-commit}`. `WM_RESTART` controls whether `i3`, `polybar` and `picom` are restarted. That way, each time you commit or pull, changes are applied automagically, including configuration deletion detection.