Added new Obsidian vault
parent
318205ad39
commit
5221c65449
|
@ -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 $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+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+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
|
# automatic workspace
|
||||||
assign [class="(?i)Obsidian"] → number 4
|
assign [class="(?i)Obsidian"] → number 4
|
||||||
|
|
|
@ -133,7 +133,7 @@ done
|
||||||
if [ ! -z "${WM_RESTART}" ]; then
|
if [ ! -z "${WM_RESTART}" ]; then
|
||||||
echo -e "\n=== Restart graphical environment ==="
|
echo -e "\n=== Restart graphical environment ==="
|
||||||
# Reload i3 configuration
|
# Reload i3 configuration
|
||||||
i3-msg reload
|
i3-msg restart
|
||||||
|
|
||||||
# Restart picom due to this bug https://github.com/yshui/picom/issues/166
|
# Restart picom due to this bug https://github.com/yshui/picom/issues/166
|
||||||
killall picom; picom &>/dev/null &
|
killall picom; picom &>/dev/null &
|
||||||
|
|
|
@ -126,7 +126,7 @@ You can now reboot.
|
||||||
|
|
||||||
### Install Git Hook
|
### 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
|
```sh
|
||||||
#!/bin/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 <env>
|
exec env WM_RESTART=1 ~/.init_config.sh <env>
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
`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.
|
That way, each time you commit or pull, changes are applied automagically, including configuration deletion detection.
|
||||||
|
|
Loading…
Reference in New Issue