Add automatic launch at startup
This commit is contained in:
parent
9989ce3582
commit
0d846193ae
2 changed files with 26 additions and 0 deletions
14
bin/launch_mail_worksplace.sh
Executable file
14
bin/launch_mail_worksplace.sh
Executable 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
|
|
@ -18,3 +18,15 @@ exec swayidle \
|
||||||
timeout 600 'swaymsg "output * dpms off"' \
|
timeout 600 'swaymsg "output * dpms off"' \
|
||||||
resume 'swaymsg "output * dpms on"' \
|
resume 'swaymsg "output * dpms on"' \
|
||||||
before-sleep 'swaylock -i $lock_bg'
|
before-sleep 'swaylock -i $lock_bg'
|
||||||
|
|
||||||
|
# Autolaunch
|
||||||
|
for_window [app_id="mail"] resize set height 600 px
|
||||||
|
|
||||||
|
# $ws3 firefox
|
||||||
|
exec swaymsg 'workspace $ws3; layout tabbed; exec firefox'
|
||||||
|
|
||||||
|
# $ws5 : tabbed layout (Remmina)
|
||||||
|
exec swaymsg 'workspace $ws5l layout tabbed'
|
||||||
|
|
||||||
|
# launch mail workspace
|
||||||
|
exec ~/local/bin/launch_mail_workspace.sh
|
||||||
|
|
Reference in a new issue