Add script to populate the first i3/sway workspace with terminal apps
This commit is contained in:
parent
e524c820b8
commit
494877e84f
1 changed files with 31 additions and 0 deletions
31
shell_scripts/home_workspace.fish
Executable file
31
shell_scripts/home_workspace.fish
Executable 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
|
Loading…
Reference in a new issue