52 lines
1.5 KiB
Bash
Executable File
52 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
ws1=$(( $1*10 + 1 ))
|
|
ws2=$(( $1*10 + 2 ))
|
|
ws3=$(( $1*10 + 3 ))
|
|
ws4=$(( $1*10 + 4 ))
|
|
ws5=$(( $1*10 + 5 ))
|
|
ws6=$(( $1*10 + 6 ))
|
|
ws7=$(( $1*10 + 7 ))
|
|
ws8=$(( $1*10 + 8 ))
|
|
ws9=$(( $1*10 + 9 ))
|
|
ws10=$(( $1*10 + 10 ))
|
|
|
|
#1
|
|
i3-msg "exec xdg-open obsidian://open?vault=PunkCraft"
|
|
|
|
#2
|
|
chromium --class=chromium-punkcraft --user-data-dir=$HOME/.config/punkcraft &
|
|
|
|
#3
|
|
i3-msg "workspace $ws3; exec i3-sensible-terminal --title \"term_pnk3\""
|
|
|
|
#7
|
|
i3-msg "workspace $ws7; exec dbeaver"
|
|
|
|
#8
|
|
i3-msg "workspace $ws8; exec krita"
|
|
|
|
#9
|
|
designer ~/dev/punkcraft/launcher/src/resources/mainwindow.ui &
|
|
|
|
#10
|
|
tmux new-session -d -s velocity -c /home/xuy/dev/punkcraft/velocity 'nvim .'
|
|
tmux new-session -d -s sponge -c /home/xuy/dev/punkcraft/sponge 'nvim .'
|
|
tmux new-session -d -s forge -c /home/xuy/dev/punkcraft/forge 'nvim .'
|
|
tmux new-session -d -s launcher -c /home/xuy/dev/punkcraft/launcher 'nvim .'
|
|
i3-msg "workspace $ws10; exec i3-sensible-terminal --title \"term_pnk10\" -e \"tmux attach -t forge\""
|
|
|
|
|
|
sleep 6
|
|
i3-msg "[title=\".* - PunkCraft - Obsidian.*\"] move container to workspace $ws1"
|
|
i3-msg "[class=\"chromium-punkcraft\"] move container to workspace $ws2"
|
|
i3-msg "[title=\"term_pnk7\"] move container to workspace $ws3"
|
|
i3-msg "[class=\"krita\"] move container to workspace $ws8"
|
|
i3-msg "[class=\"Designer\"] move container to workspace $ws9"
|
|
i3-msg "[title=\"term_pnk10\"] move container to workspace $ws10"
|
|
#i3-msg "[title=\"Qt.*Designer\"] move container to workspace 49"
|
|
|
|
sleep 7
|
|
i3-msg "[class=\"DBeaver\"] move container to workspace $ws7"
|
|
|