Add script to populate the first i3/sway workspace with terminal apps

This commit is contained in:
Muaz Ahmad 2024-12-23 14:10:45 +05:00
parent e524c820b8
commit 494877e84f

View file

@ -0,0 +1,31 @@
#!/usr/bin/fish
set ipc_comm i3-msg
set term_comms \
"contour class contour" \
"contour class neomutt execute neomutt" \
"contour class stmps execute stmps --mpris"
function spawn_terms
for i in $term_comms
$ipc_comm "exec $i"
sleep 0.2
end
end
function set_layout
$ipc_comm "[class=contour] split toggle"
$ipc_comm "[class=neomutt] move up"
$ipc_comm "[class=neomutt] resize set 40 ppt"
$ipc_comm "[class=stmps] resize set height 30 ppt"
end
function spawn_home
$ipc_comm "workspace 1"
$ipc_comm "layout splitv"
spawn_terms
sleep 0.5
set_layout
end
spawn_home