Add automatic launch at startup

This commit is contained in:
Yorick Barbanneau 2020-10-31 00:41:56 +01:00
parent 9989ce3582
commit 0d846193ae
2 changed files with 26 additions and 0 deletions

14
bin/launch_mail_worksplace.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
# script for launching my mail workspace
swaymsg 'workspace $ws2; layout splitv'
swaymsg 'exec $term --class=mail neomutt'
swaymsg 'exec $term --class=cal ikhal'
while :; do
sleep .2
swaymsg '[app_id="cal"] focus' 2>/dev/null && break
done
swaymsg 'splith; exec $term'
exit 0