#!/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