#!/bin/csh
## this is version for Tosh4 = Ubuntu 18.04
# file: initworkspaces = start my standard 12 desktops at login
# last: Sep 28 2018  Rob Rutten  Deil
# note: set sleep values experimentally

#RR Sep 13 2018 
# permit slow Skype startup
sleep 2.0

# put two terminals on each workspace
foreach iws (0 1 2 3 4 5 6 7 8 9 10 11 )
  xdotool set_desktop $iws
  gnome-terminal --geometry 80x24+0-0 --title terminal &
  sleep 0.7
  gnome-terminal --geometry 80x24+0+200 --title terminal &
  sleep 0.7
end

# 12th workspace: open browser
xdotool set_desktop 11
google-chrome &
sleep 1.0

# 1st workspace: 2 terminals + todo, journal, work notes emacs windows
xdotool set_desktop 0
scrrjr  ## alias that opens to-do, journal, work notes in colored terminals
sleep 1.0

# 11th workspace: add mail windows; stay there
xdotool set_desktop 10
scrmail   ## alias that opens two large blue mail windows for mutt

