feat: save i3 layout and auto load it

This commit is contained in:
Ryan Yin
2023-06-17 23:24:19 +08:00
parent d53ed4ef7e
commit dae0504f5c
7 changed files with 165 additions and 21 deletions

0
home/linux/i3/scripts/README.md Normal file → Executable file
View File

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# load the ssh key for idols first
ssh-add ~/.ssh/ai-idols
# restore the layout of workspace 1
i3-msg "workspace 10: ; append_layout ~/.config/i3/layouts/idols-monitor.json"
# open applications, note that --command must be the last option
i3-msg -t command "exec alacritty --title 'ai' --command 'btop'"
i3-msg -t command "exec alacritty --title 'aquamarine' --command ssh -t ryan@aquamarine 'btop'"
i3-msg -t command "exec alacritty --title 'ruby' --command ssh -t ryan@ruby 'btop'"
i3-msg -t command "exec alacritty --title 'kana' --command ssh -t ryan@kana 'btop'"